zbyszek / rpms / lvm2

Forked from rpms/lvm2 4 years ago
Clone
cvsdist 42c54cf
# Makefile for source rpm: lvm2
cvsdist 42c54cf
# $Id$
cvsdist 42c54cf
NAME := lvm2
cvsdist 42c54cf
SPECFILE = $(firstword $(wildcard *.spec))
ac39fd0
UPSTREAM_CHECKS = asc
cvsdist 42c54cf
ad9da8f
define find-makefile-common
867a717
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
ad9da8f
endef
ad9da8f
ad9da8f
MAKEFILE_COMMON := $(shell $(find-makefile-common))
ad9da8f
ad9da8f
ifeq ($(MAKEFILE_COMMON),)
ad9da8f
# attempt a checkout
ad9da8f
define checkout-makefile-common
ad9da8f
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
ad9da8f
endef
ad9da8f
ad9da8f
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
ad9da8f
endif
ad9da8f
ad9da8f
include $(MAKEFILE_COMMON)