e2ed2ee
# Makefile for source rpm: supervisor
0814eff
# $Id: Makefile,v 1.1 2007/04/22 16:29:23 mmcgrath Exp $
e2ed2ee
NAME := supervisor
e2ed2ee
SPECFILE = supervisor.spec
e2ed2ee
e2ed2ee
define find-makefile-common
0814eff
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
e2ed2ee
endef
e2ed2ee
e2ed2ee
MAKEFILE_COMMON := $(shell $(find-makefile-common))
e2ed2ee
e2ed2ee
ifeq ($(MAKEFILE_COMMON),)
e2ed2ee
# attept a checkout
e2ed2ee
define checkout-makefile-common
e2ed2ee
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
e2ed2ee
endef
e2ed2ee
e2ed2ee
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
e2ed2ee
endif
e2ed2ee
e2ed2ee
include $(MAKEFILE_COMMON)