Fix makefile
This commit is contained in:
parent
ef8f4176b1
commit
9efa2cbe8c
11
Makefile
11
Makefile
|
@ -3,14 +3,11 @@ SOURCES=$(shell find . -not -path "./cmd/*" -type f -name "*.go")
|
||||||
|
|
||||||
all: bin/server bin/generate
|
all: bin/server bin/generate
|
||||||
|
|
||||||
bin/server: cmd/server.go bin/ $(SOURCES)
|
bin/server: cmd/server.go $(SOURCES)
|
||||||
go build -o bin/server $<
|
go build -o $@ $<
|
||||||
|
|
||||||
bin/generate: cmd/generate.go bin/ $(SOURCES)
|
bin/generate: cmd/generate.go $(SOURCES)
|
||||||
go build -o bin/server $<
|
go build -o $@ $<
|
||||||
|
|
||||||
bin/:
|
|
||||||
mkdir -p bin
|
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -rf bin/
|
rm -rf bin/
|
||||||
|
|
Loading…
Reference in New Issue