This repository has been archived by the owner on May 11, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
93 lines (60 loc) · 1.83 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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
##
# Trevaling Makefile
# Top level wrapper to call each component's build/lint/test targets
###############################################################################
all:: error_clear build _lint _test error_check
lint: error_clear _lint error_check
test: error_clear _test error_check
build: build_comet67p build_rosetta build_philae
_lint: lint_comet67p lint_rosetta lint_philae
_test: test_comet67p test_rosetta test_philae
##
# Meta targets
#########################
comet67p: error_clear build_comet67p lint_comet67p test_comet67p error_check
rosetta: error_clear build_rosetta lint_rosetta test_rosetta error_check
philae: error_clear build_philae lint_philae test_philae error_check
##
# Build commands
#########################
build_comet67p:
npm install
build_rosetta:
cd rosetta && npm install
cd rosetta && grunt build
build_philae:
cd philae && make
##
# Lint commands
#########################
lint_comet67p:
npm run comet67p_lint || touch error
lint_rosetta:
cd rosetta && grunt lint || touch ../error
lint_philae:
cd philae && make lint || touch ../error
##
# Test commands
#########################
test_comet67p:
npm run comet67p_test-cov || touch error
test_rosetta:
cd rosetta && grunt test || touch ../error
test_philae:
cd philae && make test || touch ../error
##
# Other targets
#########################
error_check:
test ! -e error
error_clear:
rm error 2> /dev/null || true
coverage.info: comet67p/coverage/lcov.info rosetta/coverage/lcov.info philae/coverage.info
lcov -a comet67p/coverage/lcov.info -a rosetta/coverage/lcov.info -a philae/coverage.info -q -o coverage.info
coveralls: coverage.info
cat ./coverage.info | ./node_modules/coveralls/bin/coveralls.js
clean:
rm coverage.info 2> /dev/null || true
cd comet67p && grunt clean
cd rosetta && grunt clean
cd philae && make clean