|
cvsextras |
003ae1c |
# Makefile for source rpm: soundtracker
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
e4cad4c |
# $Id: Makefile,v 1.2 2004/11/24 04:58:21 gafton Exp $
|
|
cvsextras |
003ae1c |
NAME := soundtracker
|
|
cvsextras |
003ae1c |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
cvsextras |
003ae1c |
|
|
cvsextras |
003ae1c |
define find-makefile-common
|
|
![](https://seccdn.libravatar.org/avatar/0574566f43c1c00fc46341c0de38109615382a6a19a01364719de3fb62465678?s=16&d=retro) |
e4cad4c |
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
|
|
cvsextras |
003ae1c |
endef
|
|
cvsextras |
003ae1c |
|
|
cvsextras |
003ae1c |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
cvsextras |
003ae1c |
|
|
cvsextras |
003ae1c |
ifeq ($(MAKEFILE_COMMON),)
|
|
cvsextras |
003ae1c |
# attept a checkout
|
|
cvsextras |
003ae1c |
define checkout-makefile-common
|
|
gafton |
04dcfaf |
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 |
003ae1c |
endef
|
|
cvsextras |
003ae1c |
|
|
cvsextras |
003ae1c |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
cvsextras |
003ae1c |
endif
|
|
cvsextras |
003ae1c |
|
|
cvsextras |
003ae1c |
include $(MAKEFILE_COMMON)
|