cvsextras 6aeafc
# Makefile for source rpm: alsa-tools
gafton 67de06
# $Id: Makefile,v 1.1 2004/11/08 04:01:50 cvsextras Exp $
cvsextras 6aeafc
NAME := alsa-tools
cvsextras 6aeafc
SPECFILE = $(firstword $(wildcard *.spec))
cvsextras 6aeafc
cvsextras 6aeafc
define find-makefile-common
cvsextras 6aeafc
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 6aeafc
endef
cvsextras 6aeafc
cvsextras 6aeafc
MAKEFILE_COMMON	:= $(shell $(find-makefile-common))
cvsextras 6aeafc
cvsextras 6aeafc
ifeq ($(MAKEFILE_COMMON),)
cvsextras 6aeafc
# attept a checkout
cvsextras 6aeafc
define checkout-makefile-common
gafton 67de06
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
cvsextras 6aeafc
endef
cvsextras 6aeafc
cvsextras 6aeafc
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
cvsextras 6aeafc
endif
cvsextras 6aeafc
cvsextras 6aeafc
include $(MAKEFILE_COMMON)