10 lines
287 B
Makefile
10 lines
287 B
Makefile
SOURCES=*.go
|
|
LINKER_FLAGS=-X main.OwlVersion=`git describe --tags --dirty`
|
|
owl: ${SOURCES}
|
|
go build -o owl -ldflags "${LINKER_FLAGS}" -- ${SOURCES}
|
|
owl.1: man.md
|
|
pandoc -s --shift-heading-level-by=-1 --to=man man.md > owl.1
|
|
build: owl owl.1
|
|
test: *.go
|
|
go test -v .
|
|
.PHONY: build test
|