cd1cf3e
# Makefile for source rpm: adf-accanthis-fonts
cd1cf3e
# $Id$
cd1cf3e
NAME := adf-accanthis-fonts
cd1cf3e
SPECFILE = $(firstword $(wildcard *.spec))
cd1cf3e
cd1cf3e
define find-makefile-common
cd1cf3e
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
cd1cf3e
endef
cd1cf3e
cd1cf3e
MAKEFILE_COMMON := $(shell $(find-makefile-common))
cd1cf3e
cd1cf3e
ifeq ($(MAKEFILE_COMMON),)
cd1cf3e
# attept a checkout
cd1cf3e
define checkout-makefile-common
cd1cf3e
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
cd1cf3e
endef
cd1cf3e
cd1cf3e
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
cd1cf3e
endif
cd1cf3e
cd1cf3e
include $(MAKEFILE_COMMON)