Benjamin Kosnik a02781
# Makefile for source rpm: boost
Ville Skyttä 46b662
# $Id: Makefile,v 1.3 2005/08/19 17:39:58 bkoz Exp $
Benjamin Kosnik a02781
NAME := boost
Benjamin Kosnik a02781
SPECFILE = $(firstword $(wildcard *.spec))
cvsdist 26451e
Ville Skyttä 46b662
define find-makefile-common
Ville Skyttä 46b662
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
Ville Skyttä 46b662
endef
Ville Skyttä 46b662
Ville Skyttä 46b662
MAKEFILE_COMMON := $(shell $(find-makefile-common))
Ville Skyttä 46b662
Ville Skyttä 46b662
ifeq ($(MAKEFILE_COMMON),)
Ville Skyttä 46b662
# attempt a checkout
Ville Skyttä 46b662
define checkout-makefile-common
Ville Skyttä 46b662
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
Ville Skyttä 46b662
endef
Ville Skyttä 46b662
Ville Skyttä 46b662
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
Ville Skyttä 46b662
endif
Ville Skyttä 46b662
Ville Skyttä 46b662
include $(MAKEFILE_COMMON)