fcami / rpms / mono

Forked from rpms/mono 3 years ago
Clone
jross 267502f
# Makefile for source rpm: mono
65de1f8
# $Id: Makefile,v 1.1 2005/01/13 19:32:57 jross Exp $
jross 267502f
NAME := mono
jross 267502f
SPECFILE = $(firstword $(wildcard *.spec))
jross 267502f
65de1f8
define find-makefile-common
65de1f8
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
65de1f8
endef
65de1f8
65de1f8
MAKEFILE_COMMON := $(shell $(find-makefile-common))
65de1f8
65de1f8
ifeq ($(MAKEFILE_COMMON),)
65de1f8
# attempt a checkout
65de1f8
define checkout-makefile-common
65de1f8
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
65de1f8
endef
65de1f8
65de1f8
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
65de1f8
endif
65de1f8
65de1f8
include $(MAKEFILE_COMMON)