|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
# Makefile for source rpm: pidgin
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
867ab83 |
# $Id: Makefile,v 1.1 2007/04/16 23:15:34 wtogami Exp $
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
NAME := pidgin
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
define find-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
867ab83 |
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) |
578354f |
endef
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
ifeq ($(MAKEFILE_COMMON),)
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
# attept a checkout
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
define checkout-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
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) |
578354f |
endef
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
endif
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
|
|
![](https://seccdn.libravatar.org/avatar/264a2eb423d28b295d9f5617a2e78dd00e64949c1fb712e963c08c020bd2c830?s=16&d=retro) |
578354f |
include $(MAKEFILE_COMMON)
|