bacillus/Makefile
2023-08-06 19:09:43 -07:00

20 lines
326 B
Makefile

MAKEOPTS = $(MAKEOPTS)
GIT_COMMIT := $(shell git rev-list -1 HEAD)
VERSION := 0.2.9.4-dev
BUILDOPTS :=$(BUILDOPTS) -ldflags "-X main.version=$(VERSION) -X main.gitCommit=$(GIT_COMMIT)"
.PHONY: install all clean
install: all
go install $(BUILDOPTS) .
all:
go build $(BUILDOPTS) .
test:
go test -v .
clean:
go clean .