forked from beautifier/js-beautify
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
53 lines (37 loc) · 851 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
define AVAILABLE_ACTIONS
publish: publish jsbeautifier to github.com and sync
test: test both implementations, js and python
testp: test python implementation
testj: test javascript implementation
endef
export AVAILABLE_ACTIONS
define SCRIPT_PUBLISH
open spic
cd jsbeautifier.org
mirror -Rv attic
mirror -Rv jquery
mirror -Rv tests
mirror -Rv unpackers
mirror -Rv python
put beautify-css.js beautify-html.js beautify.js index.html license.txt README.md
endef
export SCRIPT_PUBLISH
.SILENT:
all:
echo "$$AVAILABLE_ACTIONS"
publish:
git push
lftp -c "$$SCRIPT_PUBLISH"
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
tests: testp testj
test: testp testj