Skip to content
Newer
Older
100644 100 lines (76 sloc) 2.62 KB
32ca65f [svn r993] allow overriding python executable in Makefile by passing …
scoder authored Apr 25, 2006
1 PYTHON?=python
1f3da5b [svn r1] Initial import of lxml into subversion.
faassen authored Jul 9, 2004
2 TESTFLAGS=-p -v
3 TESTOPTS=
4 SETUPFLAGS=
e4576f9 [svn r3559] r4003@delle: sbehnel | 2008-04-18 21:39:50 +0200
scoder authored Apr 18, 2008
5 LXMLVERSION=`cat version.txt`
1f3da5b [svn r1] Initial import of lxml into subversion.
faassen authored Jul 9, 2004
6
7 all: inplace
8
9 # Build in-place
10 inplace:
11 $(PYTHON) setup.py $(SETUPFLAGS) build_ext -i
12
13 build:
14 $(PYTHON) setup.py $(SETUPFLAGS) build
15
16 test_build: build
17 $(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS)
18
19 test_inplace: inplace
20 $(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS)
1a06da3 [svn r1424] also run ET selftests on make test
scoder authored Jun 6, 2006
21 PYTHONPATH=src $(PYTHON) selftest.py
22 PYTHONPATH=src $(PYTHON) selftest2.py
1f3da5b [svn r1] Initial import of lxml into subversion.
faassen authored Jul 9, 2004
23
c36711d [svn r2105] target 'valtest' to run tests in valgrind
scoder authored Feb 16, 2007
24 valgrind_test_inplace: inplace
2a05a8a [svn r2879] longer stack traces from valgrind
scoder authored Sep 15, 2007
25 valgrind --tool=memcheck --leak-check=full --num-callers=30 --suppressions=valgrind-python.supp \
ddb7cbf [svn r2154] run valgrind tests without verbose test output
scoder authored Feb 25, 2007
26 $(PYTHON) test.py
c36711d [svn r2105] target 'valtest' to run tests in valgrind
scoder authored Feb 16, 2007
27
63c43a2 [svn r3320] r3551@delle: sbehnel | 2008-02-19 21:51:25 +0100
scoder authored Feb 21, 2008
28 gdb_test_inplace: inplace
29 @echo -e "file $(PYTHON)\nrun test.py" > .gdb.command
30 gdb -x .gdb.command -d src -d src/lxml
31
6413714 [svn r589] refactoring of benchmark setup, add 'bench' target to Make…
scoder authored Mar 7, 2006
32 bench_inplace: inplace
1f5fcad [svn r3233] r3374@delle: sbehnel | 2008-02-01 10:16:04 +0100
scoder authored Feb 1, 2008
33 $(PYTHON) benchmark/bench_etree.py -i
34 $(PYTHON) benchmark/bench_xpath.py -i
35 $(PYTHON) benchmark/bench_xslt.py -i
36 $(PYTHON) benchmark/bench_objectify.py -i
6413714 [svn r589] refactoring of benchmark setup, add 'bench' target to Make…
scoder authored Mar 7, 2006
37
1f3da5b [svn r1] Initial import of lxml into subversion.
faassen authored Jul 9, 2004
38 ftest_build: build
39 $(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS)
40
41 ftest_inplace: inplace
42 $(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS)
43
d309884 [svn r3575] r4037@delle: sbehnel | 2008-04-23 18:15:02 +0200
scoder authored Apr 23, 2008
44 apihtml: inplace
082a6e9 [svn r2787] delete API docs only when regenerating them
scoder authored Aug 30, 2007
45 rm -fr doc/html/api
8001da3 [svn r2675] do not print epydoc call in Makefile
scoder authored Jul 21, 2007
46 @[ -x "`which epydoc`" ] \
47 && (cd src && echo "Generating API docs ..." && \
1b3d21a [svn r3284] r3469@delle: sbehnel | 2008-02-13 19:54:11 +0100
scoder authored Feb 13, 2008
48 PYTHONPATH=. epydoc -v --docformat "restructuredtext en" \
49 -o ../doc/html/api --no-private --exclude='[.]html[.]tests|[.]_' \
d309884 [svn r3575] r4037@delle: sbehnel | 2008-04-23 18:15:02 +0200
scoder authored Apr 23, 2008
50 --name "lxml API" --url http://codespeak.net/lxml/ lxml/) \
51 || (echo "not generating epydoc API documentation")
52
53 html: inplace apihtml
54 PYTHONPATH=src $(PYTHON) doc/mkhtml.py doc/html . ${LXMLVERSION}
55
56 apipdf: inplace
57 rm -fr doc/pdf
58 mkdir -p doc/pdf
59 @[ -x "`which epydoc`" ] \
60 && (cd src && echo "Generating API docs ..." && \
61 PYTHONPATH=. epydoc -v --latex --docformat "restructuredtext en" \
62 -o ../doc/pdf --no-private --exclude='([.]html)?[.]tests|[.]_' \
63 --exclude-introspect='html[.]clean' \
64 --name "lxml API" --url http://codespeak.net/lxml/ lxml/) \
970fb0a [svn r2631] use epydoc (if available) to generate API docs
scoder authored Jul 12, 2007
65 || (echo "not generating epydoc API documentation")
7f09a63 [svn r1398] integrate publish.py from svn/lxml/www as doc/mkhtml.py, …
scoder authored Jun 4, 2006
66
d309884 [svn r3575] r4037@delle: sbehnel | 2008-04-23 18:15:02 +0200
scoder authored Apr 23, 2008
67 pdf: apipdf
e4576f9 [svn r3559] r4003@delle: sbehnel | 2008-04-18 21:39:50 +0200
scoder authored Apr 18, 2008
68 $(PYTHON) doc/mklatex.py doc/pdf . ${LXMLVERSION}
147d25b [svn r3589] r4059@delle: sbehnel | 2008-04-24 16:49:37 +0200
scoder authored Apr 24, 2008
69 (cd doc/pdf && pdflatex lxmldoc.tex \
70 && pdflatex lxmldoc.tex \
71 && pdflatex lxmldoc.tex)
6edfe7e [svn r3574] r4031@delle: sbehnel | 2008-04-22 23:53:08 +0200
scoder authored Apr 23, 2008
72 @pdfopt doc/pdf/lxmldoc.pdf doc/pdf/lxmldoc-${LXMLVERSION}.pdf
6e9372e [svn r3564] r4015@delle: sbehnel | 2008-04-19 17:11:48 +0200
scoder authored Apr 19, 2008
73 @echo "PDF available as doc/pdf/lxmldoc-${LXMLVERSION}.pdf"
e4576f9 [svn r3559] r4003@delle: sbehnel | 2008-04-18 21:39:50 +0200
scoder authored Apr 18, 2008
74
75 # Two pdflatex runs are needed to build the correct Table of contents.
76
1f3da5b [svn r1] Initial import of lxml into subversion.
faassen authored Jul 9, 2004
77 test: test_inplace
78
c36711d [svn r2105] target 'valtest' to run tests in valgrind
scoder authored Feb 16, 2007
79 valtest: valgrind_test_inplace
80
63c43a2 [svn r3320] r3551@delle: sbehnel | 2008-02-19 21:51:25 +0100
scoder authored Feb 21, 2008
81 gdbtest: gdb_test_inplace
82
6413714 [svn r589] refactoring of benchmark setup, add 'bench' target to Make…
scoder authored Mar 7, 2006
83 bench: bench_inplace
84
1f3da5b [svn r1] Initial import of lxml into subversion.
faassen authored Jul 9, 2004
85 ftest: ftest_inplace
86
87 clean:
d532cc3 [svn r3178] r3270@delle: sbehnel | 2008-01-19 14:25:11 +0100
scoder authored Jan 19, 2008
88 find . \( -name '*.o' -o -name '*.so' -o -name '*.py[cod]' -o -name '*.dll' \) -exec rm -f {} \;
082a6e9 [svn r2787] delete API docs only when regenerating them
scoder authored Aug 30, 2007
89 rm -rf build
1f3da5b [svn r1] Initial import of lxml into subversion.
faassen authored Jul 9, 2004
90
a21609f [svn r3387] r3699@delle: sbehnel | 2008-03-03 12:01:18 +0100
scoder authored Mar 3, 2008
91 docclean:
92 rm -f doc/html/*.html
93 rm -fr doc/html/api
6e9372e [svn r3564] r4015@delle: sbehnel | 2008-04-19 17:11:48 +0200
scoder authored Apr 19, 2008
94 rm -fr doc/pdf
a21609f [svn r3387] r3699@delle: sbehnel | 2008-03-03 12:01:18 +0100
scoder authored Mar 3, 2008
95
96 realclean: clean docclean
d532cc3 [svn r3178] r3270@delle: sbehnel | 2008-01-19 14:25:11 +0100
scoder authored Jan 19, 2008
97 find . -name '*.c' -exec rm -f {} \;
1f3da5b [svn r1] Initial import of lxml into subversion.
faassen authored Jul 9, 2004
98 rm -f TAGS
99 $(PYTHON) setup.py clean -a
Something went wrong with that request. Please try again.