Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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