a02781b
# Makefile for source rpm: boost
456c3cf
# $Id: Makefile,v 1.4 2007/10/15 17:13:04 scop Exp $
a02781b
NAME := boost
a02781b
SPECFILE = $(firstword $(wildcard *.spec))
cvsdist 26451e8
46b662e
define find-makefile-common
456c3cf
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
46b662e
endef
46b662e
46b662e
MAKEFILE_COMMON := $(shell $(find-makefile-common))
46b662e
46b662e
ifeq ($(MAKEFILE_COMMON),)
46b662e
# attempt a checkout
46b662e
define checkout-makefile-common
46b662e
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
46b662e
endef
46b662e
46b662e
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
46b662e
endif
46b662e
46b662e
include $(MAKEFILE_COMMON)