[csw-devel] SF.net SVN: gar:[8126] csw/mgar/gar/v2-dirpackage/gar.pkg.mk
dmichelsen at users.sourceforge.net
dmichelsen at users.sourceforge.net
Sat Jan 23 21:45:12 CET 2010
Revision: 8126
http://gar.svn.sourceforge.net/gar/?rev=8126&view=rev
Author: dmichelsen
Date: 2010-01-23 20:45:12 +0000 (Sat, 23 Jan 2010)
Log Message:
-----------
mGAR v2 dirpackage: Add new target 'dirpackage'
Modified Paths:
--------------
csw/mgar/gar/v2-dirpackage/gar.pkg.mk
Modified: csw/mgar/gar/v2-dirpackage/gar.pkg.mk
===================================================================
--- csw/mgar/gar/v2-dirpackage/gar.pkg.mk 2010-01-23 20:38:04 UTC (rev 8125)
+++ csw/mgar/gar/v2-dirpackage/gar.pkg.mk 2010-01-23 20:45:12 UTC (rev 8126)
@@ -693,7 +693,7 @@
# We depend on extract as the additional package files (like .gspec) must be
# unpacked to global/ for packaging. E. g. 'merge' depends only on the specific
# modulations and does not fill global/.
-ENABLE_CHECK ?= 1
+_package: ENABLE_CHECK ?= 1
_package: validateplatform extract-global merge $(SPKG_DESTDIRS) pre-package $(PACKAGE_TARGETS) post-package $(if $(ENABLE_CHECK),pkgcheck)
@$(MAKECOOKIE)
@@ -705,6 +705,18 @@
@echo
@$(DONADA)
+dirpackage: _DIRPACKAGE=1
+dirpackage: ENABLE_CHECK=
+dirpackage: _package
+ @echo "The following packages have been built:"
+ @echo
+ @$(MAKE) -s PLATFORM=$(PLATFORM) _dirpkgshow
+ @echo
+ @$(DONADA)
+
+_dirpkgshow:
+ @$(foreach SPEC,$(_PKG_SPECS),echo " $(SPKG_SPOOLDIR)/$(SPEC)";)
+
_pkgshow:
@$(foreach SPEC,$(_PKG_SPECS),printf " %-20s %s\n" $(SPEC) $(SPKG_EXPORT)/$(shell $(call _PKG_ENV,$(SPEC)) $(GARBIN)/mkpackage -qs $(WORKDIR)/$(SPEC).gspec -D pkgfile).gz;)
@@ -720,7 +732,7 @@
--pkgbase $(SPKG_PKGBASE) \
--pkgroot $(SPKG_PKGROOT) \
-v WORKDIR_FIRSTMOD=../build-$(firstword $(MODULATIONS)) \
- --compress \
+ $(if $(_DIRPACKAGE),--notransfer --nocompress,--compress) \
$(MKPACKAGE_ARGS) ) || exit 2
@$(MAKECOOKIE)
@@ -754,6 +766,8 @@
repackage: pkgreset package
+redirpackage: pkgreset dirpackage
+
# This rule automatically logs into every host where a package for this software should
# be built. It is especially suited for automated build bots.
platforms:
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