xavierb / rpms / pysvn

Forked from rpms/pysvn 4 years ago
Clone
d430eac
# Makefile for source rpm: pysvn
d430eac
# $Id$
d430eac
NAME := pysvn
d430eac
SPECFILE = $(firstword $(wildcard *.spec))
d430eac
d430eac
define find-makefile-common
d430eac
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
d430eac
endef
d430eac
d430eac
MAKEFILE_COMMON := $(shell $(find-makefile-common))
d430eac
d430eac
ifeq ($(MAKEFILE_COMMON),)
d430eac
# attept a checkout
d430eac
define checkout-makefile-common
d430eac
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
d430eac
endef
d430eac
d430eac
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
d430eac
endif
d430eac
d430eac
include $(MAKEFILE_COMMON)