|
cvsdist |
a17bbe |
# Makefile for source rpm: alsa-utils
|
|
Ville Skyttä |
70bf1a |
# $Id: Makefile,v 1.1 2004/09/09 02:55:30 cvsdist Exp $
|
|
cvsdist |
a17bbe |
NAME := alsa-utils
|
|
cvsdist |
a17bbe |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
cvsdist |
a17bbe |
|
|
Ville Skyttä |
70bf1a |
define find-makefile-common
|
|
Ville Skyttä |
70bf1a |
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
|
|
Ville Skyttä |
70bf1a |
endef
|
|
Ville Skyttä |
70bf1a |
|
|
Ville Skyttä |
70bf1a |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
Ville Skyttä |
70bf1a |
|
|
Ville Skyttä |
70bf1a |
ifeq ($(MAKEFILE_COMMON),)
|
|
Ville Skyttä |
70bf1a |
# attempt a checkout
|
|
Ville Skyttä |
70bf1a |
define checkout-makefile-common
|
|
Ville Skyttä |
70bf1a |
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
|
|
Ville Skyttä |
70bf1a |
endef
|
|
Ville Skyttä |
70bf1a |
|
|
Ville Skyttä |
70bf1a |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
Ville Skyttä |
70bf1a |
endif
|
|
Ville Skyttä |
70bf1a |
|
|
Ville Skyttä |
70bf1a |
include $(MAKEFILE_COMMON)
|