hacker-quotes/Makefile

14 lines
240 B
Makefile

SOURCES=$(shell find . -not -path "./cmd/*" -type f -name "*.go")
all: bin/server bin/generate
bin/server: cmd/server.go $(SOURCES)
go build -o $@ $<
bin/generate: cmd/generate.go $(SOURCES)
go build -o $@ $<
clean:
rm -rf bin/