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