d8deb57
# Makefile for source rpm: audacious-plugin-fc
64b712d
# $Id: Makefile,v 1.1 2007/07/02 18:38:58 kevin Exp $
d8deb57
NAME := audacious-plugin-fc
d8deb57
SPECFILE = $(firstword $(wildcard *.spec))
d8deb57
d8deb57
define find-makefile-common
64b712d
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
d8deb57
endef
d8deb57
d8deb57
MAKEFILE_COMMON := $(shell $(find-makefile-common))
d8deb57
d8deb57
ifeq ($(MAKEFILE_COMMON),)
d8deb57
# attept a checkout
d8deb57
define checkout-makefile-common
d8deb57
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
d8deb57
endef
d8deb57
d8deb57
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
d8deb57
endif
d8deb57
d8deb57
include $(MAKEFILE_COMMON)