Makefile: add missing rule dependencies

This commit is contained in:
Kevin Cotugno 2017-09-26 22:58:49 -07:00
parent 43eea51b56
commit a6ff2e3547

View File

@ -1,6 +1,9 @@
FMTFLAGS = -l -w -s FMTFLAGS = -l -w -s
BUILD_DIR = build BUILD_DIR = build
WATCHER_FILES = $(wildcard cmd/watcher/*.go)
WATCHER_FILES = $(wildcard cmd/webapp/*.go)
TACITUS_FILES = $(wildcard *.go) TACITUS_FILES = $(wildcard *.go)
GDAX_FILES = $(wildcard gdax/*.go) GDAX_FILES = $(wildcard gdax/*.go)
GDAX_WEBSOCKET_FILES = $(wildcard gdax/websocket/*.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) go tool vet $(HTTP_FILES)
$(WEBAPP): $(WEBAPP): $(WEBAPP_FILES) $(HTTP_FILES) $(OSUTIL_FILES) $(POSTGRES_FILES)
go build -o $(WEBAPP) cmd/webapp/main.go go build -o $(WEBAPP) cmd/webapp/main.go
$(WATCHER): $(TACITUS_FILES) $(OSUTIL_FILES) $(POSTGRES_FILES) \ $(WATCHER): $(TACITUS_FILES) $(OSUTIL_FILES) $(POSTGRES_FILES) \
$(GDAX_FILES) $(GDAX_WEBSOCKET_FILES) $(GDAX_FILES) $(GDAX_WEBSOCKET_FILES) $(WATCHER_FILES)
go build -o $(WATCHER) cmd/watcher/main.go go build -o $(WATCHER) $(WATCHER_FILES)
clean: clean:
-rm -f $(BUILD_DIR)/* -rm -f $(BUILD_DIR)/*
.PHONEY: clean webapp watcher fmt .PHONEY: all clean webapp watcher fmt