-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
50 lines (37 loc) · 1.01 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
# Default action
default: test
########################################
# Distribution
########################################
release:
misc/release.py
install:
cp -a schemepy /usr/lib/python2.5/site-packages/
########################################
# Documentation
########################################
DOCC = doc/src/compile-doc.py
doc/html/%.html: doc/src/%.rst doc/src/template.txt doc/src/compile-doc.py
$(DOCC) doc/src/$*.rst > doc/html/$*.html
doc: $(patsubst doc/src/%.rst,doc/html/%.html,$(wildcard doc/src/*.rst))
########################################
# Test
########################################
TRUNNER = nosetests tests
test_guile:
BACKEND=guile $(TRUNNER)
test_pyscheme:
BACKEND=pyscheme $(TRUNNER)
test_mzscheme:
BACKEND=mzscheme $(TRUNNER)
test_skime:
BACKEND=skime $(TRUNNER)
test: test_guile
########################################
# Git tasks
########################################
push:
doc/gen_index.py
git-add doc/index.html
GIT_EDITOR=/bin/true git-commit --amend
git push