tstellar / rpms / apr-util

Forked from rpms/apr-util 4 years ago
Clone
cvsdist e1adec5
# Makefile for source rpm: apr-util
cvsdist e1adec5
# $Id$
cvsdist e1adec5
NAME := apr-util
cvsdist e1adec5
SPECFILE = $(firstword $(wildcard *.spec))
64cb6ee
UPSTREAM_CHECKS = asc
cvsdist e1adec5
137e69c
define find-makefile-common
7191936
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
137e69c
endef
137e69c
137e69c
MAKEFILE_COMMON := $(shell $(find-makefile-common))
137e69c
137e69c
ifeq ($(MAKEFILE_COMMON),)
137e69c
# attempt a checkout
137e69c
define checkout-makefile-common
137e69c
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
137e69c
endef
137e69c
137e69c
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
137e69c
endif
137e69c
137e69c
include $(MAKEFILE_COMMON)