summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorfaassen <none@none>2004-07-09 13:25:27 +0200
committerfaassen <none@none>2004-07-09 13:25:27 +0200
commit1f3da5bfad5a01a99bb20e804fa3a9b26d08373f (patch)
tree667cae4a70ca8bfcdf83a1ccc4d8cb78e749e0d8 /Makefile
downloadpython-lxml-1f3da5bfad5a01a99bb20e804fa3a9b26d08373f.tar.gz
[svn r1] Initial import of lxml into subversion.
--HG-- branch : trunk
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile38
1 files changed, 38 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 00000000..d17e89b0
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,38 @@
+PYTHON=python2.3
+TESTFLAGS=-p -v
+TESTOPTS=
+SETUPFLAGS=
+
+all: inplace
+
+# Build in-place
+inplace:
+ $(PYTHON) setup.py $(SETUPFLAGS) build_ext -i
+
+build:
+ $(PYTHON) setup.py $(SETUPFLAGS) build
+
+test_build: build
+ $(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS)
+
+test_inplace: inplace
+ $(PYTHON) test.py $(TESTFLAGS) $(TESTOPTS)
+
+ftest_build: build
+ $(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS)
+
+ftest_inplace: inplace
+ $(PYTHON) test.py -f $(TESTFLAGS) $(TESTOPTS)
+
+# XXX What should the default be?
+test: test_inplace
+
+ftest: ftest_inplace
+
+clean:
+ find . \( -name '*.o' -o -name '*.so' -o -name '*.py[co]' -o -name '*.dll' \) -exec rm -f {} \;
+ rm -rf build
+
+realclean: clean
+ rm -f TAGS
+ $(PYTHON) setup.py clean -a