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