forked from lynxkite/lynxkite
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
67 lines (63 loc) · 2.79 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
find = git ls-files --others --exclude-standard --cached
.SUFFIXES: # Disable built-in rules.
.PHONY: all
all: backend
# Remove all ignored files. Deleting the .idea folder messes with IntelliJ, so exclude
# that.
.PHONY: clean
clean:
git clean -f -X -d --exclude="!.idea/"
.build/gulp-done: $(shell $(find) web/app) web/gulpfile.js web/package.json .eslintrc.yaml
cd web && LC_ALL=C yarn --frozen-lockfile && npx gulp && cd - && touch $@
.build/documentation-verified: $(shell $(find) app) .build/gulp-done
./tools/check_documentation.sh && touch $@
.build/sphynx-done: $(shell $(find) sphynx)
sphynx/build.sh && touch $@
.build/backend-done: \
$(shell $(find) app project lib conf built-ins sphynx) tools/call_spark_submit.sh \
build.sbt README.md .build/gulp-done .build/licenses-done .build/sphynx-done
./tools/install_spark.sh && sbt scalafmt stage < /dev/null && touch $@
.build/backend-test-spark-passed: $(shell $(find) app test project conf) build.sbt \
.build/sphynx-done
./tools/install_spark.sh && ./test_backend.sh && touch $@
.build/backend-test-sphynx-passed: $(shell $(find) app test project conf) build.sbt \
.build/sphynx-done
./tools/install_spark.sh && ./test_backend.sh -s && touch $@
.build/frontend-test-passed: \
$(shell $(find) web/test) build.sbt .build/backend-done \
.build/documentation-verified .build/gulp-done
./test_frontend.sh && touch $@
.build/remote_api-python-test-passed: $(shell $(find) python/remote_api) .build/backend-done
tools/with_lk.sh python/remote_api/test.sh && touch $@
dependency-licenses/scala.md: build.sbt
./tools/install_spark.sh && sbt dumpLicenseReport && cp target/license-reports/lynxkite-licenses.md $@
dependency-licenses/javascript.txt: web/package.json
cd web && LC_ALL=C yarn licenses generate-disclaimer > ../$@
dependency-licenses/javascript.md: web/package.json
cd web && LC_ALL=C yarn licenses list | egrep '^└─|^├─|^│ └─|^│ ├─|^ └─|^ ├─' > ../$@
.build/licenses-done: dependency-licenses/scala.md dependency-licenses/javascript.txt dependency-licenses/javascript.md
touch $@
# Short aliases for command-line use.
.PHONY: backend
backend: .build/backend-done
.PHONY: frontend
frontend: .build/gulp-done
.PHONY: backend-test-spark
backend-test-spark: .build/backend-test-spark-passed
.PHONY: backend-test-sphynx
backend-test-sphynx: .build/backend-test-sphynx-passed
.PHONY: backend-test
backend-test: backend-test-spark backend-test-sphynx
.PHONY: frontend-test
frontend-test: .build/frontend-test-passed
.PHONY: remote_api-test
remote_api-test: .build/remote_api-python-test-passed
.PHONY: test
test: backend-test frontend-test remote_api-test
.PHONY: licenses
licenses: .build/licenses-done
.PHONY: local-bd-test
local-bd-test: .build/backend-done
python/big_data_tests/run_test.sh
.PHONY: sphynx
sphynx: .build/sphynx-done