2021-02-13 08:39:05 -08:00
|
|
|
|
2021-02-13 09:02:41 -08:00
|
|
|
SOURCES=$(shell find . -not -path "./cmd/*" -type f -name "*.go")
|
2021-02-13 08:39:05 -08:00
|
|
|
|
2021-02-13 09:02:41 -08:00
|
|
|
all: bin/server bin/generate
|
2021-02-13 08:39:05 -08:00
|
|
|
|
2021-02-14 15:25:42 -08:00
|
|
|
bin/server: cmd/server.go $(SOURCES)
|
|
|
|
go build -o $@ $<
|
2021-02-13 09:02:41 -08:00
|
|
|
|
2021-02-14 15:25:42 -08:00
|
|
|
bin/generate: cmd/generate.go $(SOURCES)
|
|
|
|
go build -o $@ $<
|
2021-02-13 09:02:41 -08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf bin/
|