forked from beautifier/js-beautify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
60 lines (44 loc) · 1.08 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
define AVAILABLE_ACTIONS
build: do static checking and build of js
test: test both implementations, js and python
testp: test python implementation
testj: test javascript implementation
endef
export AVAILABLE_ACTIONS
.SILENT:
all: build test
help:
echo "$$AVAILABLE_ACTIONS"
build:
echo Building... ;\
npm install ;\
testp:
echo Testing python implementation...
cd python ;\
python --version ;\
./jsbeautifier/tests/shell-smoke-test.sh && \
PYTHON=python ./js-beautify-test
testj:
echo Testing javascript implementation...
node --version; \
npm test
edit:
vim \
js/lib/beautify.js python/jsbeautifier/__init__.py \
js/test/beautify-tests.js python/jsbeautifier/tests/testjsbeautifier.py
gedit:
gvim \
js/lib/beautify.js \
js/test/beautify-tests.js \
python/jsbeautifier/__init__.py \
python/jsbeautifier/tests/testjsbeautifier.py &
tests: testj testp
test: testj testp
gh:
git push origin master &&\
cd gh-pages &&\
git pull origin gh-pages &&\
git pull origin master &&\
git merge master &&\
git push origin gh-pages
.PHONY: testp testj all edit tests test