go-generate-example/Makefile

13 lines
131 B
Makefile
Raw Permalink Normal View History

run: farts
./farts
farts: $(wildcard *.go) farts.go
go build -o $@ .
farts.go:
go generate
clean:
rm -rf *~ farts.go farts