-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
79 lines (51 loc) · 1.59 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
SELINUX = /usr/share/selinux/devel/Makefile
.PHONY: all fmt gofmt goinstall goinstall-fcgi golint gotest install \
install-fcgi lint test vnu webapp-fmt webapp-install \
webapp-lint webapp-test
all:
"$$GOPATH/bin/tsubonesystem3" & $(MAKE) -C webapp webpack-watch & wait
doc: godoc jsdoc
fix: gofix
fmt: webapp-fmt gofmt
godoc: jsdoc
mkdir -p go/src/github.com/kagucho/tsubonesystem3
git ls-files | xargs cp --parent -t go/src/github.com/kagucho/tsubonesystem3
(export ADDRESS=`go run ./frontend/tsubonesystem3_resolve/*`; GOPATH= godoc -goroot go -http $$ADDRESS & sleep 1; wget -nH -kmP out/go $$ADDRESS; kill $$!)
godoc-clean:
rm -rf go out
gofix:
go fix ./...
gofmt:
go fmt ./...
govet:
go vet ./...
goinstall: frontend/tsubonesystem3
go install ./$<
goinstall-fcgi: frontend/tsubonesystem3_fcgi
go install ./$<
golint:
golint ./...
goprepare:
go get -d ./...
gotest:
go test ./...
install: webapp-install goinstall
install-fcgi: webapp-install goinstall-fcgi
jsdoc:
cd webapp; npm run jsdoc -- -d ../out $(JSDOCFLAGS)
lint: webapp-lint golint
prepare: goprepare webapp-prepare
test: webapp-test gotest
vet: govet
webapp-fmt: webapp
$(MAKE) -C $< fmt
webapp-install: webapp
$(MAKE) -C $< install
webapp-lint: webapp
"$$GOPATH/bin/tsubonesystem3" & $(MAKE) -C $< lint TSUBONESYSTEM_URL=http://`go run ./frontend/tsubonesystem3_resolve/*`; kill $$!
webapp-prepare: webapp
$(MAKE) -C $< prepare
webapp-test:
"$$GOPATH/bin/tsubonesystem3" & $(MAKE) -C webapp test TSUBONESYSTEM_URL=http://`go run ./frontend/tsubonesystem3_resolve/*`; kill $$!
%.pp: $(SELINUX)
$(MAKE) -f $< $@