2017-12-05 22:54:10 +00:00
|
|
|
# kernel-style V=1 build verbosity
|
|
|
|
ifeq ("$(origin V)", "command line")
|
|
|
|
BUILD_VERBOSE = $(V)
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(BUILD_VERBOSE),1)
|
|
|
|
Q =
|
|
|
|
else
|
|
|
|
Q = @
|
|
|
|
endif
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: bin/serve-package
|
|
|
|
|
|
|
|
bin/serve-package:
|
|
|
|
$(Q)go build -o $@ cmd/serve-package/main.go
|
|
|
|
|
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
$(Q)rm -rf bin
|
|
|
|
|
|
|
|
.PHONY: vendor
|
|
|
|
vendor:
|
2020-09-24 17:46:18 +00:00
|
|
|
$(Q)go mod vendor
|