[rhmessaging-commits] rhmessaging commits: r3796 - in mgmt/trunk: cumin and 2 other directories.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Wed Jan 13 14:23:08 EST 2010


Author: justi9
Date: 2010-01-13 14:23:07 -0500 (Wed, 13 Jan 2010)
New Revision: 3796

Modified:
   mgmt/trunk/Makefile
   mgmt/trunk/cumin/Makefile
   mgmt/trunk/etc/Makefile.common
   mgmt/trunk/mint/Makefile
Log:
Add a clean rule, and move schema clean to a new rule

Modified: mgmt/trunk/Makefile
===================================================================
--- mgmt/trunk/Makefile	2010-01-13 15:12:58 UTC (rev 3795)
+++ mgmt/trunk/Makefile	2010-01-13 19:23:07 UTC (rev 3796)
@@ -1,4 +1,4 @@
-.PHONY: help tags check-devel-env
+.PHONY: help tags check-devel-env clean
 
 version := 0.1.$(shell svn info | fgrep "Revision:" | cut -d " " -f 2)
 
@@ -19,3 +19,7 @@
 	    echo "DEVEL_HOME is not set; you need to source etc/devel.profile"; \
 	    exit 1; \
 	fi
+
+clean:
+	$(MAKE) clean -C mint
+	$(MAKE) clean -C cumin

Modified: mgmt/trunk/cumin/Makefile
===================================================================
--- mgmt/trunk/cumin/Makefile	2010-01-13 15:12:58 UTC (rev 3795)
+++ mgmt/trunk/cumin/Makefile	2010-01-13 19:23:07 UTC (rev 3796)
@@ -1,4 +1,4 @@
-.phony: build install
+.phony: build install clean
 
 include ../etc/Makefile.common
 
@@ -37,3 +37,5 @@
 	install -pm 0644 etc/cumin.* ${etc}
 	install -pm 0755 etc/sysvinit-cumin ${etc}
 	install -d ${log}
+
+clean: clean-python-files

Modified: mgmt/trunk/etc/Makefile.common
===================================================================
--- mgmt/trunk/etc/Makefile.common	2010-01-13 15:12:58 UTC (rev 3795)
+++ mgmt/trunk/etc/Makefile.common	2010-01-13 19:23:07 UTC (rev 3796)
@@ -1,3 +1,5 @@
+.PHONY: clean-python-files
+
 PREFIX := /usr/local
 PYTHON_LIB_DIR := ${PREFIX}/lib/python
 BIN_DIR := ${PREFIX}/bin
@@ -10,3 +12,6 @@
 else
     VAR_DIR := ${PREFIX}/var
 endif
+
+clean-python-files:
+	find python -type f -name \*.py[co] -delete

Modified: mgmt/trunk/mint/Makefile
===================================================================
--- mgmt/trunk/mint/Makefile	2010-01-13 15:12:58 UTC (rev 3795)
+++ mgmt/trunk/mint/Makefile	2010-01-13 19:23:07 UTC (rev 3796)
@@ -1,4 +1,4 @@
-.PHONY: build install schema clean
+.PHONY: build install clean schema schema-clean
 
 include ../etc/Makefile.common
 
@@ -24,13 +24,14 @@
 	install -d ${etc}
 	install -pm 0644 etc/mint-vacuumdb.cron ${etc}
 
-schema:
+schema: schema-clean
 	$(MAKE) schema -C xml
 	$(MAKE) schema -C python/mint
 	$(MAKE) schema -C sql
 
-clean:
+schema-clean:
 	$(MAKE) clean -C xml
 	$(MAKE) clean -C python/mint
 	$(MAKE) clean -C sql
 
+clean: clean-python-files



More information about the rhmessaging-commits mailing list