aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: cba07640c64d9a96fa62cb9ab95a504d557afa5f (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

all: build

run: tmpl
	$(GO_RUN) .

build:
	$(GO_BUILD) \
		-o $(OUT) \
		.

install: build
	install -Dm755 $(OUT) $(BINDIR)/$(BIN)

compress: build
	upx --best --ultra-brute $(OUT)