honk/Makefile

18 lines
238 B
Makefile

all: honk
schema.go: schema.sql
sh ./genschemago.sh
honk: .preflightcheck schema.go *.go go.mod
go build -mod=`ls -d vendor 2> /dev/null` -o honk
.preflightcheck: preflight.sh
@sh ./preflight.sh
clean:
rm -f honk
test:
go test