Skip to content

Commit

Permalink
build: zgrab should not be built in host
Browse files Browse the repository at this point in the history
  • Loading branch information
developStorm committed May 20, 2024
1 parent 65f23d5 commit 6b19ad4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ TEST_MODULES ?=

all: zgrab2

.PHONY: all clean integration-test integration-test-clean docker-runner container-clean gofmt test
.PHONY: all clean integration-test integration-test-clean docker-runner gofmt test

# Test currently only runs on the modules folder because some of the
# third-party libraries in lib (e.g. http) are failing.
Expand All @@ -25,7 +25,7 @@ zgrab2: $(GO_FILES)
rm -f zgrab2
ln -s cmd/zgrab2/zgrab2$(EXECUTABLE_EXTENSION) zgrab2

docker-runner: zgrab2
docker-runner: clean
make -C docker-runner

integration-test: docker-runner
Expand All @@ -37,12 +37,6 @@ integration-test-clean:
./integration_tests/cleanup.sh
make -C docker-runner clean

# This is the target for re-building from source in the container
container-clean:
rm -f zgrab2
cd cmd/zgrab2 && go build -v -a . && cd ../..
ln -s cmd/zgrab2/zgrab2$(EXECUTABLE_EXTENSION) zgrab2

clean:
cd cmd/zgrab2 && go clean
rm -f zgrab2

0 comments on commit 6b19ad4

Please sign in to comment.