forked from beautifier/js-beautify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (39 loc) · 939 Bytes
/
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
define AVAILABLE_ACTIONS
test: test both implementations, js and python
testp: test python implementation
testj: test javascript implementation
endef
export AVAILABLE_ACTIONS
.SILENT:
all:
echo "$$AVAILABLE_ACTIONS"
testp:
cd python ;\
echo Testing python3 ;\
PYTHON=python3 ./js-beautify-test ;\
echo Testing python2 ;\
PYTHON=python2 ./js-beautify-test
echo
testj:
echo Testing javascript implementation...
./tests/run-tests
echo
edit:
vim \
beautify.js python/jsbeautifier/__init__.py \
tests/beautify-tests.js python/jsbeautifier/tests/testjsbeautifier.py
gedit:
gvim \
beautify.js \
tests/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 master &&\
git merge master &&\
git push origin gh-pages
.PHONY: testp testj all edit tests test