aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: e5bf8e969c0ba1a495a15f815588997245e31e15 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
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)