Fix makefile

This commit is contained in:
Zorchenhimer 2021-02-14 18:25:42 -05:00
parent ef8f4176b1
commit 9efa2cbe8c
Signed by: Zorchenhimer
GPG Key ID: 70A1AB767AAB9C20
1 changed files with 4 additions and 7 deletions

View File

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