Makefile: fmt target

This commit is contained in:
Kevin Cotugno 2017-09-25 16:56:43 -07:00
parent a691554234
commit ebaa8be899

View File

@ -17,6 +17,17 @@ watcher: $(WATCHER)
webapp: $(WEBAPP)
fmt: $(TACITUS_FILES) $(OSUTIL_FILES) $(POSTGRES_FILES) $(OPS_FILES) \
$(GDAX_FILES) $(GDAX_WEBSOCKET_FILES) $(HTTP_FILES)
go fmt $(TACITUS_FILES)
go fmt $(OSUTIL_FILES)
go fmt $(POSTGRES_FILES)
go fmt $(OPS_FILES)
go fmt $(GDAX_FILES)
go fmt $(GDAX_WEBSOCKET_FILES)
go fmt $(HTTP_FILES)
$(WEBAPP):
go build -o $(WEBAPP) cmd/webapp/main.go
@ -27,4 +38,4 @@ $(WATCHER): $(TACITUS_FILES) $(OSUTIL_FILES) $(POSTGRES_FILES) \
clean:
-rm -f $(BUILD_DIR)/*
.PHONEY: clean webapp watcher
.PHONEY: clean webapp watcher fmt