PREFIX ?=/usr/local BINDIR ?=$(PREFIX)/bin BIN?=apkdoc OUT=./bin/$(BIN) GO_RUN?= go run -v GO_BUILD?= go build -v -ldflags "-s -w" all: build run: tmpl $(GO_RUN) . build: $(GO_BUILD) \ -o $(OUT) \ . install: install -Dm755 $(OUT) $(BINDIR)/$(BIN) compress: upx --best --ultra-brute $(OUT) check: build $(OUT) \ -f example.md \ -t text \ -u https://alpine.mirror.wearetriple.com/v3.18/main/x86_64/APKINDEX.tar.gz \ -o index.txt