|
cvsdist |
42c54c |
# Makefile for source rpm: lvm2
|
|
Bill Nottingham |
154329 |
# $Id: Makefile,v 1.3 2007/10/15 19:07:11 notting Exp $
|
|
cvsdist |
42c54c |
NAME := lvm2
|
|
cvsdist |
42c54c |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
Alasdair Kergon |
923acc |
UPSTREAM_CHECKS = asc
|
|
cvsdist |
42c54c |
|
|
Bill Nottingham |
a59b2b |
define find-makefile-common
|
|
Bill Nottingham |
154329 |
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
|
|
Bill Nottingham |
a59b2b |
endef
|
|
Bill Nottingham |
a59b2b |
|
|
Bill Nottingham |
a59b2b |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
Bill Nottingham |
a59b2b |
|
|
Bill Nottingham |
a59b2b |
ifeq ($(MAKEFILE_COMMON),)
|
|
Bill Nottingham |
a59b2b |
# attempt a checkout
|
|
Bill Nottingham |
a59b2b |
define checkout-makefile-common
|
|
Bill Nottingham |
a59b2b |
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
|
|
Bill Nottingham |
a59b2b |
endef
|
|
Bill Nottingham |
a59b2b |
|
|
Bill Nottingham |
a59b2b |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
Bill Nottingham |
a59b2b |
endif
|
|
Bill Nottingham |
a59b2b |
|
|
Bill Nottingham |
a59b2b |
include $(MAKEFILE_COMMON)
|