lkundrak / rpms / sendmail

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