-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (38 loc) · 1008 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
DEPS = $(shell go list -f '{{range .TestImports}}{{.}} {{end}}' ./...)
all: deps format
@bash --norc ./scripts/make_ui.sh
@bash --norc ./scripts/build_client.sh
@bash --norc ./scripts/build_updater.sh
@echo "--> Starting shell..."
@bash --norc ./scripts/run_shell.sh > debug.log 2>&1 &
@echo "Done."
deps:
@echo "--> Installing build dependencies"
@go get -d -v ./...
@echo $(DEPS) | xargs -n1 go get -d
format:
@echo "--> Running go fmt"
@gofmt -w client/
@gofmt -w updater/
test: deps
@go test ./...
release: clean
@echo "--> WARNING: YOU ARE PUTTING BOWERY IN THE WILD!!!"
-rm -rf build/
@bash --norc ./scripts/make_ui.sh
@bash --norc ./scripts/release_client.sh
clean:
@echo "--> Cleaning up a bit."
-rm -rf pkg
-rm -rf client/pkg
-rm -rf dist
-rm -rf bin
-rm -f debug.log
-rm -f goxc.log
-pkill -f bin/client
extra-clean: clean
@echo "--> Cleaning up a lot."
-rm -rf /tmp/atom
-rm -rf /tmp/shell
-rm -rf build/
.PHONY: all deps format test release clean extra-clean