[csw-devel] SF.net SVN: gar:[7622] csw/mgar/gar/v2/gar.pkg.mk

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Mon Dec 14 21:22:34 CET 2009


Revision: 7622
          http://gar.svn.sourceforge.net/gar/?rev=7622&view=rev
Author:   dmichelsen
Date:     2009-12-14 20:22:34 +0000 (Mon, 14 Dec 2009)

Log Message:
-----------
mGAR v2: Add platforms-%

Modified Paths:
--------------
    csw/mgar/gar/v2/gar.pkg.mk

Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2009-12-14 20:20:59 UTC (rev 7621)
+++ csw/mgar/gar/v2/gar.pkg.mk	2009-12-14 20:22:34 UTC (rev 7622)
@@ -776,6 +776,17 @@
 	)
 	@$(MAKECOOKIE)
 
+platforms-%:
+	$(foreach P,$(PACKAGING_PLATFORMS),\
+		$(if $(PACKAGING_HOST_$P),\
+			$(if $(filter $(THISHOST),$(PACKAGING_HOST_$P)),\
+				$(MAKE) PLATFORM=$P $* && ,\
+				$(SSH) -t $(PACKAGING_HOST_$P) "PATH=$$PATH:/opt/csw/bin $(MAKE) -C $(CURDIR) PLATFORM=$P $*" && \
+			),\
+			$(error *** No host has been defined for platform $P)\
+		)\
+	) true
+
 replatforms: spotless platforms
 
 # Print relecant informations about the platform


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.



More information about the devel mailing list