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