aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 6653599ab8de93721f880aeda078513189574e3b (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
BIN := pdfstamp
CC ?= cc

build:
	CC=$(CC) CGO_ENABLED=1 go build -tags musl \
		-ldflags '-linkmode external -extldflags -static' -o $(BIN) .

test:
	CC=$(CC) CGO_ENABLED=1 go vet -tags musl ./...
	CC=$(CC) CGO_ENABLED=1 go test -tags musl ./...

fmt:
	gofmt -w *.go

run: build
	./$(BIN) pick example.pdf -o plan.json

clean:
	rm -f $(BIN)

.PHONY: build test fmt run clean