[rhmessaging-commits] rhmessaging commits: r1954 - mgmt.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Tue Apr 22 14:50:58 EDT 2008


Author: justi9
Date: 2008-04-22 14:50:58 -0400 (Tue, 22 Apr 2008)
New Revision: 1954

Modified:
   mgmt/Makefile
Log:
Add a check-devel-env rule and use it where needed

Modified: mgmt/Makefile
===================================================================
--- mgmt/Makefile	2008-04-22 16:13:02 UTC (rev 1953)
+++ mgmt/Makefile	2008-04-22 18:50:58 UTC (rev 1954)
@@ -1,9 +1,5 @@
-ifndef DEVEL_HOME
-    $(error "DEVEL_HOME is not set; you need to source etc/devel.profile")
-endif
+.PHONY: help dist clean cumin mint tags check-devel-env
 
-.PHONY: help dist clean cumin mint tags
-
 version := 0.1
 
 help:
@@ -41,12 +37,19 @@
 mint:
 	cd mint && make install
 
-clean:
+clean: check-devel-env
 	rm -rf dist
-	rm -rf ${DEVEL_HOME}/install
+	rm -rf "${DEVEL_HOME}"/install
 
-tags:
+tags: check-devel-env
 	find "${DEVEL_HOME}" -name \*.py -print \
 		| etags --output="${DEVEL_HOME}/etc/devel.tags" -
 	find "${DEVEL_HOME}" -name \*.strings -print \
-		| etags --append --output="${DEVEL_HOME}/etc/devel.tags" --regex='/^\[.*\][ \t]*$$/\1/' -
+		| etags --append --output="${DEVEL_HOME}/etc/devel.tags" \
+	        --regex='/^\[.*\][ \t]*$$/\1/' -
+
+check-devel-env:
+	@if test -z "${DEVEL_HOME}"; then \
+	    echo "DEVEL_HOME is not set; you need to source etc/devel.profile"; \
+	    exit 1; \
+	fi




More information about the rhmessaging-commits mailing list