diff --git a/Makefile b/Makefile index 9e76939..fbb5aaa 100644 --- a/Makefile +++ b/Makefile @@ -5,21 +5,23 @@ BINARY=./build/vt LDFLAGS=-ldflags "-X github.com/VirusTotal/vt-cli/cmd.Version=${VERSION}" # Builds the project +.PHONY: build build: go build ${LDFLAGS} -o ${BINARY} ./vt/main.go # Installs our project: copies binaries +.PHONY: install install: go install ${LDFLAGS} github.com/VirusTotal/vt-cli/vt # Build the project for multiple architectures +.PHONY: all all: gox ${LDFLAGS} \ -osarch="linux/amd64 linux/386 windows/amd64 windows/386 darwin/amd64 freebsd/amd64 freebsd/386" \ -output "build/{{.OS}}/{{.Arch}}/{{.Dir}}" github.com/VirusTotal/vt-cli/vt # Cleans our project: deletes binaries +.PHONY: clean clean: rm -rf ./build - -.PHONY: clean install