forked from mit-dci/lit
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
51 lines (40 loc) · 1.1 KB
/
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
47
48
49
50
51
GOBIN = $(shell pwd)
GO ?= latest
GO_BUILD_EX_ARGS ?=
all: lit lit-af test
.PHONY: lit lit-af glit test tests webui
goget:
build/env.sh go get -v .
build/env.sh go get -v ./cmd/lit-af
lit: goget
build/env.sh go build -v ${GO_BUILD_EX_ARGS} .
@echo "Done building."
@echo "Run \"$(GOBIN)/lit\" to launch lit."
lit-af: goget
build/env.sh go build -v ${GO_BUILD_EX_ARGS} ./cmd/lit-af
@echo "Run \"$(GOBIN)/lit-af\" to launch lit-af."
glit:
build/env.sh go get -v ./cmd/glit
build/env.sh bash -c '(cd cmd/glit && go build -v)'
@echo "Run \"$(GOBIN)/glit\" to launch glit."
webui:
cd webui ; rm -rf node_modules/ ; npm install ; npm run build ; cd ..
@echo "Launch app from ./webui/dist/<your_dist>/litwebui"
package:
build/releasebuild.sh clean
build/releasebuild.sh
clean:
build/env.sh clean
build/releasebuild.sh clean
go clean .
go clean ./cmd/lit-af
rm -rf build/_workspace/
rm -rf webui/
rm -f cmd/lit-af/lit-af
rm -f cmd/glit/glit
test: lit
build/env.sh ./gotests.sh
ifeq ($(with-python), true)
python3 test/test_basic.py -c reg --dumplogs
python3 test/test_break.py -c reg --dumplogs
endif