ad9d7b8
# Makefile for source rpm: perl-XML-Filter-BufferText
53d636f
# $Id: Makefile,v 1.1 2007/03/22 10:02:02 ixs Exp $
ad9d7b8
NAME := perl-XML-Filter-BufferText
ad9d7b8
SPECFILE = $(firstword $(wildcard *.spec))
ad9d7b8
ad9d7b8
define find-makefile-common
53d636f
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
ad9d7b8
endef
ad9d7b8
ad9d7b8
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ad9d7b8
ad9d7b8
ifeq ($(MAKEFILE_COMMON),)
ad9d7b8
# attept a checkout
ad9d7b8
define checkout-makefile-common
ad9d7b8
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
ad9d7b8
endef
ad9d7b8
ad9d7b8
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
ad9d7b8
endif
ad9d7b8
ad9d7b8
include $(MAKEFILE_COMMON)