dd1eecd
# Makefile for source rpm: gfs-bodoni-fonts
2886e9e
# $Id: Makefile,v 1.1 2007/11/26 17:59:07 kevin Exp $
dd1eecd
NAME := gfs-bodoni-fonts
dd1eecd
SPECFILE = $(firstword $(wildcard *.spec))
dd1eecd
dd1eecd
define find-makefile-common
2886e9e
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
dd1eecd
endef
dd1eecd
dd1eecd
MAKEFILE_COMMON := $(shell $(find-makefile-common))
dd1eecd
dd1eecd
ifeq ($(MAKEFILE_COMMON),)
dd1eecd
# attept a checkout
dd1eecd
define checkout-makefile-common
dd1eecd
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
dd1eecd
endef
dd1eecd
dd1eecd
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
dd1eecd
endif
dd1eecd
dd1eecd
include $(MAKEFILE_COMMON)