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