aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 9a75daf79ba12032e7c3d2655ebb9f722516a1b7 (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
.POSIX:

GO      = go
GOFLAGS =
SCDOC   = scdoc

.PHONY: all
all: build man ;

.PHONY: build
build:
	@ mkdir -p build/bin
	@ $(GO) build $(GOFLAGS) -o build/bin/dbx ./cmd/dbx

.PHONY: check
check:
	@ $(GO) fmt ./...
	@ $(GO) vet -fix ./...
	@ $(GO) test ./...

.PHONY: man
man: build/man/man1/dbx.1 ;

build/man/man1/dbx.1: man/dbx.1.scd
	@ mkdir -p $(@D)
	@ $(SCDOC) >$@ <man/dbx.1.scd