cvsdist f41e4fb
# Makefile for source rpm: qt
cvsdist f41e4fb
# $Id$
cvsdist f41e4fb
NAME := qt
cvsdist f41e4fb
SPECFILE = $(firstword $(wildcard *.spec))
cvsdist f41e4fb
43e474a
define find-makefile-common
2f5c7e4
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
43e474a
endef
43e474a
43e474a
MAKEFILE_COMMON := $(shell $(find-makefile-common))
43e474a
43e474a
ifeq ($(MAKEFILE_COMMON),)
43e474a
# attempt a checkout
43e474a
define checkout-makefile-common
43e474a
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
43e474a
endef
43e474a
43e474a
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
43e474a
endif
43e474a
43e474a
include $(MAKEFILE_COMMON)