de274ec
# Makefile for source rpm: b43-tools
0149903
# $Id: Makefile,v 1.1 2009/05/20 05:39:37 kevin Exp $
de274ec
NAME := b43-tools
de274ec
SPECFILE = $(firstword $(wildcard *.spec))
de274ec
de274ec
define find-makefile-common
0149903
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
de274ec
endef
de274ec
de274ec
MAKEFILE_COMMON := $(shell $(find-makefile-common))
de274ec
de274ec
ifeq ($(MAKEFILE_COMMON),)
de274ec
# attept a checkout
de274ec
define checkout-makefile-common
de274ec
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
de274ec
endef
de274ec
de274ec
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
de274ec
endif
de274ec
de274ec
include $(MAKEFILE_COMMON)