cvsextras 3c6da43
# Makefile for source rpm: fontforge
cvsextras 3c6da43
# $Id$
cvsextras 3c6da43
NAME := fontforge
cvsextras 3c6da43
SPECFILE = $(firstword $(wildcard *.spec))
cvsextras 3c6da43
cvsextras 3c6da43
define find-makefile-common
cvsextras 3c6da43
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
cvsextras 3c6da43
endef
cvsextras 3c6da43
cvsextras 3c6da43
MAKEFILE_COMMON	:= $(shell $(find-makefile-common))
cvsextras 3c6da43
cvsextras 3c6da43
ifeq ($(MAKEFILE_COMMON),)
cvsextras 3c6da43
# attept a checkout
cvsextras 3c6da43
define checkout-makefile-common
gafton f25bfcd
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
cvsextras 3c6da43
endef
cvsextras 3c6da43
cvsextras 3c6da43
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
cvsextras 3c6da43
endif
cvsextras 3c6da43
cvsextras 3c6da43
include $(MAKEFILE_COMMON)