mharris 1060f9a
# Makefile for source rpm: xorg-x11-drv-ati
23a3381
# $Id: Makefile,v 1.1 2005/10/02 13:57:08 mharris Exp $
mharris 1060f9a
NAME := xorg-x11-drv-ati
mharris 1060f9a
SPECFILE = $(firstword $(wildcard *.spec))
mharris 1060f9a
23a3381
define find-makefile-common
23a3381
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
23a3381
endef
23a3381
23a3381
MAKEFILE_COMMON := $(shell $(find-makefile-common))
23a3381
23a3381
ifeq ($(MAKEFILE_COMMON),)
23a3381
# attempt a checkout
23a3381
define checkout-makefile-common
23a3381
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
23a3381
endef
23a3381
23a3381
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
23a3381
endif
23a3381
23a3381
include $(MAKEFILE_COMMON)