blob: 6fafba4ebc4d223483e478afff481cb62aa430e5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
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
|