57690ed
# Makefile for source rpm: frescobaldi
27c4f14
# $Id: Makefile,v 1.1 2009/03/20 02:49:17 kevin Exp $
57690ed
NAME := frescobaldi
57690ed
SPECFILE = $(firstword $(wildcard *.spec))
57690ed
57690ed
define find-makefile-common
27c4f14
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
57690ed
endef
57690ed
57690ed
MAKEFILE_COMMON := $(shell $(find-makefile-common))
57690ed
57690ed
ifeq ($(MAKEFILE_COMMON),)
57690ed
# attept a checkout
57690ed
define checkout-makefile-common
57690ed
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
57690ed
endef
57690ed
57690ed
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
57690ed
endif
57690ed
57690ed
include $(MAKEFILE_COMMON)