[csw-devel] SF.net SVN: gar:[4937] csw/mgar/gar/v2/gar.pkg.mk
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Mon May 18 19:50:25 CEST 2009
Revision: 4937
http://gar.svn.sourceforge.net/gar/?rev=4937&view=rev
Author: dmichelsen
Date: 2009-05-18 17:50:25 +0000 (Mon, 18 May 2009)
Log Message:
-----------
mGAR v2: Build only source package when requested
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-05-18 17:41:02 UTC (rev 4936)
+++ csw/mgar/gar/v2/gar.pkg.mk 2009-05-18 17:50:25 UTC (rev 4937)
@@ -34,11 +34,11 @@
PACKAGES = $(if $(filter %.gspec,$(DISTFILES)),,CSW$(GARNAME))
SRCPACKAGE_BASE = $(firstword $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES))
SRCPACKAGE ?= $(SRCPACKAGE_BASE)-src
-SPKG_SPECS ?= $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES) $(SRCPACKAGE)
+SPKG_SPECS ?= $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES) $(if $(NOSOURCEPACKAGE),,$(SRCPACKAGE))
else
SRCPACKAGE_BASE = $(firstword $(PACKAGES))
SRCPACKAGE ?= $(SRCPACKAGE_BASE)-src
-SPKG_SPECS ?= $(sort $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES) $(SRCPACKAGE))
+SPKG_SPECS ?= $(sort $(basename $(filter %.gspec,$(DISTFILES))) $(PACKAGES) $(if $(NOSOURCEPACKAGE),,$(SRCPACKAGE)))
endif
# Automatic definitions for source package
@@ -67,7 +67,7 @@
GARPKG_v2 = CSWgar-v2
REQUIRED_PKGS_$(SRCPACKAGE) ?= $(or $(GARPKG_$(GARSYSTEMVERSION)),$(error GAR version $(GARSYSTEMVERSION) unknown))
-_PKG_SPECS = $(filter-out $(NOPACKAGE),$(SPKG_SPECS) $(if $(NOSOURCEPACKAGE),,$(SRCPACKAGE)))
+_PKG_SPECS = $(filter-out $(NOPACKAGE),$(SPKG_SPECS))
# pkgname - Get the name of a package from a gspec-name or package-name
#
@@ -509,11 +509,10 @@
$(_DBG)(cd $(DOWNLOADDIR); pax -rH -w -v $(foreach F,$(DISTFILES) $(PATCHFILES),$F) $(_SRCDIR)/files)
$(_DBG)(cd $(CURDIR); pax -rH -w -v Makefile checksums $(_SRCDIR))
$(_DBG)ln -s ../gar/$(GARSYSTEMVERSION) $(_SRCDIR)/gar
- @$(MAKECOOKIE)
+ $(MAKECOOKIE)
reset-merge-src:
@rm -f $(COOKIEDIR)/merge-src
- @$(DONADA)
# package - Use the mkpackage utility to create Solaris packages
@@ -574,7 +573,6 @@
pkgreset: $(addprefix pkgreset-,$(SPKG_SPECS))
@rm -f $(COOKIEDIR)/extract
@rm -f $(COOKIEDIR)/extract-archive-*
- $(DONADA)
reset-package: pkgreset
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