fecd0fe
# Makefile for source rpm: cups-bjnp
fecd0fe
# $Id$
fecd0fe
NAME := cups-bjnp
fecd0fe
SPECFILE = $(firstword $(wildcard *.spec))
fecd0fe
fecd0fe
define find-makefile-common
b19532b
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
fecd0fe
endef
fecd0fe
fecd0fe
MAKEFILE_COMMON := $(shell $(find-makefile-common))
fecd0fe
fecd0fe
ifeq ($(MAKEFILE_COMMON),)
fecd0fe
# attept a checkout
fecd0fe
define checkout-makefile-common
fecd0fe
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
fecd0fe
endef
fecd0fe
fecd0fe
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
fecd0fe
endif
fecd0fe
fecd0fe
include $(MAKEFILE_COMMON)