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