rpms/frysk/F-13 Makefile,1.6,1.7
cagney
cagney at fedoraproject.org
Wed Mar 17 17:20:43 UTC 2010
Author: cagney
Update of /cvs/pkgs/rpms/frysk/F-13
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv30203/F-13
Modified Files:
Makefile
Log Message:
Make using mock easier.
Index: Makefile
===================================================================
RCS file: /cvs/pkgs/rpms/frysk/F-13/Makefile,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -r1.6 -r1.7
--- Makefile 25 Nov 2009 23:16:30 -0000 1.6
+++ Makefile 17 Mar 2010 17:20:43 -0000 1.7
@@ -19,6 +19,36 @@ MAKEFILE_COMMON := $(shell $(checkout-ma
endif
include $(MAKEFILE_COMMON)
-
+
force-tag: $(SPECFILE) $(COMMON_DIR)/branches
@$(MAKE) tag TAG_OPTS="-F $(TAG_OPTS)"
+
+# Make mock usable. The only standard target is mockbuild which
+# doesn't do what you typically want.
+
+mock-help help-mock:
+ @echo "Mock targets"
+ @echo " mock-local mock-build: Build from scratch using mock; keep the results"
+ @echo " mock-shell: Start a chrooted shell in the build-chroot"
+ @echo " mock-init: Initialize a new clean build-chroot"
+ @echo " mock-clean: Purge the build-chroot"
+ @echo " mock-update: Run yum update in the build-chroot"
+ @echo " mock-orphanskill: Kill any stray processes from the build"
+ @echo " mock-install PACKAGE=rpm: Install PACKAGE"
+ @echo " mock-installdeps PACKAGE=rpm: Install dependencies for PACKAGE"
+ @echo "Use MOCKARGS= for extra arguments"
+.PHONY:: mock-help help-mock
+
+# -prep -compile -install -compile-short -install-short
+mock-local mock-build: srpm
+ mock --no-cleanup-after $(MOCKARGS) -r $(MOCKCFG) --resultdir=$(MOCKDIR)/$(TAG) --rebuild $(SRCRPMDIR)/$(NAME)-$(VERSION)-$(RELEASE).src.rpm
+.PHONY:: mock-local mock-build
+
+mock-init mock-clean mock-shell mock-update mock-orphanskill:
+ mock $(MOCKARGS) -r $(MOCKCFG) --resultdir=$(MOCKDIR)/$(TAG) --`expr $@ : 'mock-\(.*\)'`
+.PHONY:: mock-init mock-clean mock-shell mock-update mock-orphanskill
+
+mock-install mock-installdeps:
+ if test x"$(PACKAGE)" = x ; then echo Supply PACKAGE ; exit 1 ; fi
+ mock $(MOCKARGS) -r $(MOCKCFG) --resultdir=$(MOCKDIR)/$(TAG) --`expr $@ : 'mock-\(.*\)'` $(PACKAGE)
+.PHONY:: mock-install mock-installdeps
More information about the scm-commits
mailing list