[Zope3-checkins] CVS: Zope3 - Makefile:1.7

Barry Warsaw barry@wooz.org
Thu, 19 Dec 2002 18:59:58 -0500


Update of /cvs-repository/Zope3
In directory cvs.zope.org:/tmp/cvs-serv24110

Modified Files:
	Makefile 
Log Message:
Add a bunch of make targets, but I'm not sure these are the best
defaults.  Supports building in place and building in build, as well
as testing in place and testing in build.

stupid_clean can go away now that we have the clean and realclean
targets.

stupid_build can probably go away too.

building in place is the default for bare "make".


=== Zope3/Makefile 1.6 => 1.7 ===
--- Zope3/Makefile:1.6	Thu Dec 19 14:39:12 2002
+++ Zope3/Makefile	Thu Dec 19 18:59:57 2002
@@ -1,18 +1,34 @@
 PYTHON=python2.2
 TESTOPTS=
 
-all:
-	$(PYTHON) stupid_build.py -q
+# XXX What should the default be?
+all: inplace
 
-test: all
+# Build in-place
+inplace:
+	$(PYTHON) setup.py -q build_ext -i
+
+build:
+	$(PYTHON) setup.py -q build
+
+test_build: build
 	$(PYTHON) test.py -v $(TESTOPTS)
 
+test_inplace: inplace
+	$(PYTHON) test.py -vB $(TESTOPTS)
+
+# XXX What should the default be?
+test: test_inplace
+
 run:
 	$(PYTHON) z3.py
 
 clean:
-	./stupid_clean
+	find . -name '*.o' -o -name '*.so' -o -name '*.py[co]' | xargs rm -f
 	rm -f TAGS
+
+realclean: clean
+	$(PYTHON) setup.py clean -a
 
 TAGS:
 	python ~/trunk/Tools/scripts/eptags.py `find . -name \*.py`