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

dmichelsen at users.sourceforge.net dmichelsen at users.sourceforge.net
Wed Oct 19 10:12:47 CEST 2011


Revision: 15932
          http://gar.svn.sourceforge.net/gar/?rev=15932&view=rev
Author:   dmichelsen
Date:     2011-10-19 08:12:47 +0000 (Wed, 19 Oct 2011)
Log Message:
-----------
mGAR v2: Require at least one package to be build, remove unnecessary duplicate definition of _PKG_SPECS

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

Modified: csw/mgar/gar/v2/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2/gar.pkg.mk	2011-10-19 07:55:19 UTC (rev 15931)
+++ csw/mgar/gar/v2/gar.pkg.mk	2011-10-19 08:12:47 UTC (rev 15932)
@@ -91,6 +91,7 @@
 $(foreach P,$(OBSOLETED_PKGS),$(eval $(call obsoleted_pkg,$P)))
 
 _PKG_SPECS      = $(filter-out $(NOPACKAGE),$(SPKG_SPECS))
+$(if $(_PKG_SPECS),,$(error No packages for building defined))
 
 # The is the name of the package containing the sourcefiles for all packages generated from this GAR recipe.
 # It defaults to the first defined package name or gspec. SRCPACKAGE_BASE is guaranteed
@@ -114,8 +115,6 @@
 $(if $(REQUIRED_PKGS),$(error The deprecated variable 'REQUIRED_PKGS' is defined, please replace it with RUNTIME_DEP_PKGS))
 $(foreach P,$(SPKG_SPECS),$(if $(REQUIRED_PKGS_$P),$(error The deprecated variable 'REQUIRED_PACKAGES_$P' is defined, please replace it with RUNTIME_DEP_PKGS_$P)))
 
-_PKG_SPECS      = $(filter-out $(NOPACKAGE),$(SPKG_SPECS))
-
 BUNDLE ?= $(NAME)
 
 # pkgname - Get the name of a package from a gspec-name or package-name

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