forked from chrivers/pyjaco
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (32 loc) · 912 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
SHELL=/bin/zsh -G
all: stdlib
$(MAKE) -C examples generate
stdlib:
@./pyjs.py -b generate --output .
clean: testclean
@rm -fv py-builtins.js *~ library/*~ *.pyc 1.{res,out,js}
$(MAKE) -C examples clean
testclean:
@rm -f tests/**/*.py.js.out
@rm -f tests/**/*.py.err
@rm -f tests/**/*.py.js
@rm -f tests/**/*.py.out
@rm -f tests/**/*.py.js.err
@rm -f tests/**/*.py.comp.err
@rm -f tests/**/*.pyc
@rm -f tests/**/*.run
@rm -f tests/test_builtins.js.{err,out}
examples:
$(MAKE) -C examples generate
lint:
pylint --rcfile=pylint.conf pyjaco
jslint:
jsl py-builtins.js
install:
mkdir -p $(DESTDIR)/usr/lib/python2.5/site-packages
mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/share/pyjaco
rsync -vaP pyjaco $(DESTDIR)/usr/lib/python2.5/site-packages
rsync -vaP pyjs.py $(DESTDIR)/usr/bin/pyjaco
rsync -vaP py-builtins.js $(DESTDIR)/usr/share/pyjaco
clean-package: clean
debian/rules clean