[rhmessaging-commits] rhmessaging commits: r1364 - mgmt/mint.

rhmessaging-commits at lists.jboss.org rhmessaging-commits at lists.jboss.org
Mon Nov 26 18:16:11 EST 2007


Author: justi9
Date: 2007-11-26 18:16:11 -0500 (Mon, 26 Nov 2007)
New Revision: 1364

Modified:
   mgmt/mint/Makefile
Log:
Make the makefile pay attention to MINT_XML_SCHEMA, the path to the schema
file to use in schema generation.

Also, it's .PHONY, not .phony.



Modified: mgmt/mint/Makefile
===================================================================
--- mgmt/mint/Makefile	2007-11-26 23:15:56 UTC (rev 1363)
+++ mgmt/mint/Makefile	2007-11-26 23:16:11 UTC (rev 1364)
@@ -1,14 +1,19 @@
-.phony: message schema schema-sql schema-python
+.PHONY: message schema schema-sql schema-python
 
 dsn := "postgresql://localhost/"
 
+ifndef MINT_XML_SCHEMA
+  MINT_XML_SCHEMA := "xml/MgmtSchema.xml"
+endif
+
 message:
-	@echo "Run \"make schema\" to regenerate the schema from xml/MgmtSchema.xml"
+	@echo "Run 'make schema' to regenerate the schema from MINT_XML_SCHEMA"
+	@echo "MINT_XML_SCHEMA is currently set to '${MINT_XML_SCHEMA}'"
 
 schema: schema-python schema-sql
 
 schema-python:
-	python python/mint/schemaparser.py xml/MgmtSchema.xml python/mint/schema.py ${dsn}
+	python python/mint/schemaparser.py ${MINT_XML_SCHEMA} python/mint/schema.py ${dsn}
 
 schema-sql:
 	sqlobject-admin sql -m mint.schema -c ${dsn} | sed -e '1,2d' > python/mint/schema.sql




More information about the rhmessaging-commits mailing list