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
|
||||
|
||||
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/
|
||||
|
|
Loading…
Reference in New Issue