|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
# Makefile for source rpm: perl-Text-WordDiff
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
60e76f5 |
# $Id: Makefile,v 1.1 2007/07/23 21:13:57 wtogami Exp $
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
NAME := perl-Text-WordDiff
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
define find-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
60e76f5 |
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/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
endef
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
ifeq ($(MAKEFILE_COMMON),)
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
# attept a checkout
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
define checkout-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
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/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
endef
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
endif
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
530f4de |
include $(MAKEFILE_COMMON)
|