1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
PREFIX ?= /usr/local BINDIR ?= $(PREFIX)/bin BIN?=apkdoc OUT=./bin/$(BIN) GO_RUN?= go run -v GO_BUILD?= go build -v all: build run: tmpl $(GO_RUN) . build: tmpl $(GO_BUILD) \ -o $(OUT) \ . install: build install -Dm755 $(OUT) $(BINDIR)/$(BIN) tmpl: cd ./templates && \ qtc *