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