From 6b19ad461fee84913c9c7fea8c034d092743675a Mon Sep 17 00:00:00 2001 From: devStorm <59678453+developStorm@users.noreply.github.com> Date: Mon, 20 May 2024 04:44:48 +0000 Subject: [PATCH] build: zgrab should not be built in host --- Makefile | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/Makefile b/Makefile index 4a65dbbd..ee55fe5b 100644 --- a/Makefile +++ b/Makefile @@ -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. @@ -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 @@ -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