Makefile
This commit is contained in:
parent
d8b76de011
commit
15ff0e08f2
1
.gitignore
vendored
1
.gitignore
vendored
@ -0,0 +1 @@
|
||||
build/
|
30
Makefile
Normal file
30
Makefile
Normal file
@ -0,0 +1,30 @@
|
||||
BUILD_DIR = build
|
||||
|
||||
TACITUS_FILES = $(wildcard *.go)
|
||||
GDAX_FILES = $(wildcard gdax/*.go)
|
||||
GDAX_WEBSOCKET_FILES = $(wildcard gdax/websocket/*.go)
|
||||
HTTP_FILES = $(wildcard http/*.go)
|
||||
OPS_FILES = $(wildcard ops/*.go)
|
||||
OSUTIL_FILES = $(wildcard osutil/*.go)
|
||||
POSTGRES_FILES = $(wildcard postgres/*.go)
|
||||
|
||||
WATCHER = $(BUILD_DIR)/tacitus-watcher
|
||||
WEBAPP = $(BUILD_DIR)/tacitus-webapp
|
||||
|
||||
all: watcher webapp
|
||||
|
||||
watcher: $(WATCHER)
|
||||
|
||||
webapp: $(WEBAPP)
|
||||
|
||||
$(WEBAPP):
|
||||
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
|
||||
|
||||
clean:
|
||||
-rm -f $(BUILD_DIR)/*
|
||||
|
||||
.PHONEY: clean webapp watcher
|
Reference in New Issue
Block a user