diff --git a/README.md b/README.md index 8a71927..45a63b6 100644 --- a/README.md +++ b/README.md @@ -52,8 +52,7 @@ Other way to get the binaries is compiling the project manually. * First of all you have to compile and install Yara. Please follow the intructions [here](https://github.com/VirusTotal/yara). * Seccond, you have to clone this repo o download it by running `go get github.com/Yara-Rules/yara-endpoint`. -* Third, you have to go to either `client` or `server` folder and then run `go get -u`. -* Fourth, build the project it self by running `make local`. +* Fourth, build the project it self by running `make local`. This will update the Go libraries before running the compile. The final binary will be located in the build folder. diff --git a/client/Makefile b/client/Makefile index 160b4da..b6abb1a 100644 --- a/client/Makefile +++ b/client/Makefile @@ -66,6 +66,7 @@ windows-x64: xgo -image $(DOCKER_IMAGE) -tags $(YARA_TAG) -ldflags $(LDFLAGS) -dest build -out $(OUT_NAME) -deps $(DEPS) -targets="windows/amd64" . local: + go get -u go build -o "$(TARGET_DIR)/$(OUT_NAME)" -ldflags $(LDFLAGS) . clean: diff --git a/server/Makefile b/server/Makefile index f585849..f6a3827 100644 --- a/server/Makefile +++ b/server/Makefile @@ -67,6 +67,7 @@ windows-x64: xgo -image $(DOCKER_IMAGE) -tags $(YARA_TAG) -ldflags $(LDFLAGS) -dest build -out $(OUT_NAME) -deps $(DEPS) -targets="windows/amd64" . local: + go get -u go build -o "$(TARGET_DIR)/$(OUT_NAME)" -ldflags $(LDFLAGS) . clean: