From ebaa8be899826616b0f306a67aee9d3425b698ff Mon Sep 17 00:00:00 2001 From: Kevin Cotugno Date: Mon, 25 Sep 2017 16:56:43 -0700 Subject: [PATCH] Makefile: fmt target --- Makefile | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1608995..3b18f49 100644 --- a/Makefile +++ b/Makefile @@ -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