Author: justi9
Date: 2008-10-16 13:57:57 -0400 (Thu, 16 Oct 2008)
New Revision: 2643
Modified:
mgmt/trunk/mint/Makefile
mgmt/trunk/mint/python/mint/Makefile
mgmt/trunk/mint/sql/Makefile
Log:
Add a top-level clean rule that descends to sub makefiles
Modified: mgmt/trunk/mint/Makefile
===================================================================
--- mgmt/trunk/mint/Makefile 2008-10-15 17:30:04 UTC (rev 2642)
+++ mgmt/trunk/mint/Makefile 2008-10-16 17:57:57 UTC (rev 2643)
@@ -13,9 +13,6 @@
build:
../bin/python-compile python
-clean:
- rm -f python/mint/schema-store.py python/mint/schema.py python/mint/schema.sql
-
install: build
install -d ${lib}
install python/mint/*.py python/mint/*.pyc ${lib}
@@ -30,3 +27,9 @@
$(MAKE) schema -C xml
$(MAKE) schema -C python/mint
$(MAKE) schema -C sql
+
+clean:
+ $(MAKE) clean -C xml
+ $(MAKE) clean -C python/mint
+ $(MAKE) clean -C sql
+
Modified: mgmt/trunk/mint/python/mint/Makefile
===================================================================
--- mgmt/trunk/mint/python/mint/Makefile 2008-10-15 17:30:04 UTC (rev 2642)
+++ mgmt/trunk/mint/python/mint/Makefile 2008-10-16 17:57:57 UTC (rev 2643)
@@ -1,4 +1,4 @@
-.PHONY: schema
+.PHONY: schema clean
dsn := "postgresql://localhost/"
@@ -6,3 +6,5 @@
schema.py: ../../xml/*.xml
python schemaparser.py schema.py ${dsn} $^
+
+clean:
Modified: mgmt/trunk/mint/sql/Makefile
===================================================================
--- mgmt/trunk/mint/sql/Makefile 2008-10-15 17:30:04 UTC (rev 2642)
+++ mgmt/trunk/mint/sql/Makefile 2008-10-16 17:57:57 UTC (rev 2643)
@@ -1,4 +1,4 @@
-.PHONY: schema
+.PHONY: schema clean
dsn := "postgresql://localhost/"
@@ -6,3 +6,5 @@
schema.sql: ../python/mint/*.py
sqlobject-admin sql -m mint -m mint.schema -c ${dsn} | sed -e '1,2d' >
schema.sql
+
+clean: