42cb17e
# Makefile for source rpm: gnome-python2-desktop
22ded5a
# $Id: Makefile,v 1.1 2006/02/06 21:27:57 johnp Exp $
42cb17e
NAME := gnome-python2-desktop
42cb17e
SPECFILE = $(firstword $(wildcard *.spec))
42cb17e
22ded5a
define find-makefile-common
22ded5a
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
22ded5a
endef
22ded5a
22ded5a
MAKEFILE_COMMON := $(shell $(find-makefile-common))
22ded5a
22ded5a
ifeq ($(MAKEFILE_COMMON),)
22ded5a
# attempt a checkout
22ded5a
define checkout-makefile-common
22ded5a
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
22ded5a
endef
22ded5a
22ded5a
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
22ded5a
endif
22ded5a
22ded5a
include $(MAKEFILE_COMMON)