Blame Makefile

0479093
# Makefile for source rpm: blam
0479093
# $Id: Makefile,v 1.1 2006/05/28 21:37:17 sindrepb Exp $
0479093
NAME := blam
0479093
SPECFILE = $(firstword $(wildcard *.spec))
0479093
0479093
define find-makefile-common
0479093
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
0479093
endef
0479093
0479093
MAKEFILE_COMMON := $(shell $(find-makefile-common))
0479093
0479093
ifeq ($(MAKEFILE_COMMON),)
0479093
# attept a checkout
0479093
define checkout-makefile-common
0479093
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
0479093
endef
0479093
0479093
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
0479093
endif
0479093
0479093
include $(MAKEFILE_COMMON)