cd1cf3e
# Makefile for source rpm: adf-accanthis-fonts
a6f6d17
# $Id: Makefile,v 1.1 2009/07/16 05:36:37 kevin Exp $
cd1cf3e
NAME := adf-accanthis-fonts
cd1cf3e
SPECFILE = $(firstword $(wildcard *.spec))
cd1cf3e
cd1cf3e
define find-makefile-common
a6f6d17
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
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)