jpokorny / rpms / libxml2

Forked from rpms/libxml2 4 years ago
Clone
cvsdist 4db5247
# Makefile for source rpm: libxml2
da3347f
# $Id: Makefile,v 1.1 2004/09/09 07:52:50 cvsdist Exp $
cvsdist 4db5247
NAME := libxml2
cvsdist 4db5247
SPECFILE = $(firstword $(wildcard *.spec))
cvsdist 4db5247
da3347f
define find-makefile-common
da3347f
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
da3347f
endef
da3347f
da3347f
MAKEFILE_COMMON := $(shell $(find-makefile-common))
da3347f
da3347f
ifeq ($(MAKEFILE_COMMON),)
da3347f
# attempt a checkout
da3347f
define checkout-makefile-common
da3347f
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
da3347f
endef
da3347f
da3347f
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
da3347f
endif
da3347f
da3347f
include $(MAKEFILE_COMMON)