|
|
d7b6988 |
# Makefile for source rpm: audacious-plugins
|
|
|
2c71a45 |
# $Id: Makefile,v 1.1 2006/11/26 18:23:59 ertzing Exp $
|
|
|
d7b6988 |
NAME := audacious-plugins
|
|
|
d7b6988 |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
|
d7b6988 |
|
|
|
d7b6988 |
define find-makefile-common
|
|
|
2c71a45 |
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
|
|
|
d7b6988 |
endef
|
|
|
d7b6988 |
|
|
|
d7b6988 |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
|
d7b6988 |
|
|
|
d7b6988 |
ifeq ($(MAKEFILE_COMMON),)
|
|
|
d7b6988 |
# attept a checkout
|
|
|
d7b6988 |
define checkout-makefile-common
|
|
|
d7b6988 |
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
|
|
|
d7b6988 |
endef
|
|
|
d7b6988 |
|
|
|
d7b6988 |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
|
d7b6988 |
endif
|
|
|
d7b6988 |
|
|
|
d7b6988 |
include $(MAKEFILE_COMMON)
|