cvsextras 05e99d
# Makefile for source rpm: epydoc
cvsextras 05e99d
# $Id$
cvsextras 05e99d
NAME := epydoc
cvsextras 05e99d
SPECFILE = $(firstword $(wildcard *.spec))
cvsextras 05e99d
cvsextras 05e99d
define find-makefile-common
Bill Nottingham a52548
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
cvsextras 05e99d
endef
cvsextras 05e99d
cvsextras 05e99d
MAKEFILE_COMMON	:= $(shell $(find-makefile-common))
cvsextras 05e99d
cvsextras 05e99d
ifeq ($(MAKEFILE_COMMON),)
cvsextras 05e99d
# attept a checkout
cvsextras 05e99d
define checkout-makefile-common
gafton 2b4379
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 05e99d
endef
cvsextras 05e99d
cvsextras 05e99d
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
cvsextras 05e99d
endif
cvsextras 05e99d
cvsextras 05e99d
include $(MAKEFILE_COMMON)