cvsextras 357a6c1
# Makefile for source rpm: id3v2
cvsextras 357a6c1
# $Id$
cvsextras 357a6c1
NAME := id3v2
cvsextras 357a6c1
SPECFILE = $(firstword $(wildcard *.spec))
cvsextras 357a6c1
cvsextras 357a6c1
define find-makefile-common
cvsextras 357a6c1
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
cvsextras 357a6c1
endef
cvsextras 357a6c1
cvsextras 357a6c1
MAKEFILE_COMMON	:= $(shell $(find-makefile-common))
cvsextras 357a6c1
cvsextras 357a6c1
ifeq ($(MAKEFILE_COMMON),)
cvsextras 357a6c1
# attept a checkout
cvsextras 357a6c1
define checkout-makefile-common
cvsextras 357a6c1
test -f CVS/Rootx && { 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
cvsextras 357a6c1
endef
cvsextras 357a6c1
cvsextras 357a6c1
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
cvsextras 357a6c1
endif
cvsextras 357a6c1
cvsextras 357a6c1
include $(MAKEFILE_COMMON)