mharris 4283e3
# Makefile for source rpm: xorg-x11-drivers
fea906
# $Id: Makefile,v 1.3 2007/10/15 19:32:45 notting Exp $
mharris 4283e3
NAME := xorg-x11-drivers
mharris 74f62c
SPECFILE = $(NAME).spec
mharris 4283e3
86d732
define find-makefile-common
fea906
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
86d732
endef
86d732
86d732
MAKEFILE_COMMON := $(shell $(find-makefile-common))
86d732
86d732
ifeq ($(MAKEFILE_COMMON),)
86d732
# attempt a checkout
86d732
define checkout-makefile-common
86d732
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
86d732
endef
86d732
86d732
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
86d732
endif
86d732
86d732
include $(MAKEFILE_COMMON)