Makefile: vet/fmt
This commit is contained in:
parent
ebaa8be899
commit
43eea51b56
25
Makefile
25
Makefile
@ -1,3 +1,4 @@
|
||||
FMTFLAGS = -l -w -s
|
||||
BUILD_DIR = build
|
||||
|
||||
TACITUS_FILES = $(wildcard *.go)
|
||||
@ -19,13 +20,23 @@ 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)
|
||||
gofmt $(FMTFLAGS) $(TACITUS_FILES)
|
||||
gofmt $(FMTFLAGS) $(OSUTIL_FILES)
|
||||
gofmt $(FMTFLAGS) $(POSTGRES_FILES)
|
||||
gofmt $(FMTFLAGS) $(OPS_FILES)
|
||||
gofmt $(FMTFLAGS) $(GDAX_FILES)
|
||||
gofmt $(FMTFLAGS) $(GDAX_WEBSOCKET_FILES)
|
||||
gofmt $(FMTFLAGS) $(HTTP_FILES)
|
||||
|
||||
vet: $(TACITUS_FILES) $(OSUTIL_FILES) $(POSTGRES_FILES) $(OPS_FILES) \
|
||||
$(GDAX_FILES) $(GDAX_WEBSOCKET_FILES) $(HTTP_FILES)
|
||||
go tool vet $(TACITUS_FILES)
|
||||
go tool vet $(OSUTIL_FILES)
|
||||
go tool vet $(POSTGRES_FILES)
|
||||
go tool vet $(OPS_FILES)
|
||||
go tool vet $(GDAX_FILES)
|
||||
go tool vet $(GDAX_WEBSOCKET_FILES)
|
||||
go tool vet $(HTTP_FILES)
|
||||
|
||||
|
||||
$(WEBAPP):
|
||||
|
Reference in New Issue
Block a user