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