|
anderson |
b94614f |
# Makefile for source rpm: bibletime
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
12e8a3d |
# $Id: Makefile,v 1.1 2007/01/13 17:31:04 anderson Exp $
|
|
anderson |
b94614f |
NAME := bibletime
|
|
anderson |
b94614f |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
anderson |
b94614f |
|
|
anderson |
b94614f |
define find-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
12e8a3d |
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
|
|
anderson |
b94614f |
endef
|
|
anderson |
b94614f |
|
|
anderson |
b94614f |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
anderson |
b94614f |
|
|
anderson |
b94614f |
ifeq ($(MAKEFILE_COMMON),)
|
|
anderson |
b94614f |
# attept a checkout
|
|
anderson |
b94614f |
define checkout-makefile-common
|
|
anderson |
b94614f |
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
|
|
anderson |
b94614f |
endef
|
|
anderson |
b94614f |
|
|
anderson |
b94614f |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
anderson |
b94614f |
endif
|
|
anderson |
b94614f |
|
|
anderson |
b94614f |
include $(MAKEFILE_COMMON)
|