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