|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
# Makefile for source rpm: frysk
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
# $Id: Makefile,v 1.6 2009/11/25 23:16:30 notting Exp $
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
NAME := frysk
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
define find-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
b38b55a |
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
endef
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
ifeq ($(MAKEFILE_COMMON),)
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
# attempt a checkout
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
define checkout-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
test -f CVS/Root && { cvs -Q -d $$(cat CVS/Root) checkout common && echo "common/Makefile.common" ; } || { echo "ERROR: I can't figure out how to checkout the 'common' module." ; exit -1 ; } >&2
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
endef
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
endif
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
7485d5c |
include $(MAKEFILE_COMMON)
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
e889a8b |
force-tag: $(SPECFILE) $(COMMON_DIR)/branches
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
e889a8b |
@$(MAKE) tag TAG_OPTS="-F $(TAG_OPTS)"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
# Make mock usable. The only standard target is mockbuild which
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
# doesn't do what you typically want.
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
mock-help help-mock:
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo "Mock targets"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo " mock-local mock-build: Build from scratch using mock; keep the results"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo " mock-shell: Start a chrooted shell in the build-chroot"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo " mock-init: Initialize a new clean build-chroot"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo " mock-clean: Purge the build-chroot"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo " mock-update: Run yum update in the build-chroot"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo " mock-orphanskill: Kill any stray processes from the build"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo " mock-install PACKAGE=rpm: Install PACKAGE"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo " mock-installdeps PACKAGE=rpm: Install dependencies for PACKAGE"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
@echo "Use MOCKARGS= for extra arguments"
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
.PHONY:: mock-help help-mock
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
# -prep -compile -install -compile-short -install-short
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
mock-local mock-build: srpm
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
mock --no-cleanup-after $(MOCKARGS) -r $(MOCKCFG) --resultdir=$(MOCKDIR)/$(TAG) --rebuild $(SRCRPMDIR)/$(NAME)-$(VERSION)-$(RELEASE).src.rpm
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
.PHONY:: mock-local mock-build
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
mock-init mock-clean mock-shell mock-update mock-orphanskill:
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
mock $(MOCKARGS) -r $(MOCKCFG) --resultdir=$(MOCKDIR)/$(TAG) --`expr $@ : 'mock-\(.*\)'`
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
.PHONY:: mock-init mock-clean mock-shell mock-update mock-orphanskill
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
mock-install mock-installdeps:
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
if test x"$(PACKAGE)" = x ; then echo Supply PACKAGE ; exit 1 ; fi
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
mock $(MOCKARGS) -r $(MOCKCFG) --resultdir=$(MOCKDIR)/$(TAG) --`expr $@ : 'mock-\(.*\)'` $(PACKAGE)
|
|
![](https://seccdn.libravatar.org/avatar/85b447f035226e9026bf38c8125daa97b44413276791e668e1cbbf2c75718f60?s=16&d=retro) |
0857fc7 |
.PHONY:: mock-install mock-installdeps
|