Makefile: add missing rule dependencies
This commit is contained in:
parent
43eea51b56
commit
a6ff2e3547
11
Makefile
11
Makefile
@ -1,6 +1,9 @@
|
||||
FMTFLAGS = -l -w -s
|
||||
BUILD_DIR = build
|
||||
|
||||
WATCHER_FILES = $(wildcard cmd/watcher/*.go)
|
||||
WATCHER_FILES = $(wildcard cmd/webapp/*.go)
|
||||
|
||||
TACITUS_FILES = $(wildcard *.go)
|
||||
GDAX_FILES = $(wildcard gdax/*.go)
|
||||
GDAX_WEBSOCKET_FILES = $(wildcard gdax/websocket/*.go)
|
||||
@ -39,14 +42,14 @@ vet: $(TACITUS_FILES) $(OSUTIL_FILES) $(POSTGRES_FILES) $(OPS_FILES) \
|
||||
go tool vet $(HTTP_FILES)
|
||||
|
||||
|
||||
$(WEBAPP):
|
||||
$(WEBAPP): $(WEBAPP_FILES) $(HTTP_FILES) $(OSUTIL_FILES) $(POSTGRES_FILES)
|
||||
go build -o $(WEBAPP) cmd/webapp/main.go
|
||||
|
||||
$(WATCHER): $(TACITUS_FILES) $(OSUTIL_FILES) $(POSTGRES_FILES) \
|
||||
$(GDAX_FILES) $(GDAX_WEBSOCKET_FILES)
|
||||
go build -o $(WATCHER) cmd/watcher/main.go
|
||||
$(GDAX_FILES) $(GDAX_WEBSOCKET_FILES) $(WATCHER_FILES)
|
||||
go build -o $(WATCHER) $(WATCHER_FILES)
|
||||
|
||||
clean:
|
||||
-rm -f $(BUILD_DIR)/*
|
||||
|
||||
.PHONEY: clean webapp watcher fmt
|
||||
.PHONEY: all clean webapp watcher fmt
|
||||
|
Reference in New Issue
Block a user