churchyard / rpms / blender

Forked from rpms/blender 5 years ago
Clone
cvsextras 35dc062
# Makefile for source rpm: blender
gafton 8d1b2ab
# $Id: Makefile,v 1.1 2004/11/08 04:06:47 cvsextras Exp $
cvsextras 35dc062
NAME := blender
cvsextras 35dc062
SPECFILE = $(firstword $(wildcard *.spec))
cvsextras 35dc062
cvsextras 35dc062
define find-makefile-common
cvsextras 35dc062
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
cvsextras 35dc062
endef
cvsextras 35dc062
cvsextras 35dc062
MAKEFILE_COMMON	:= $(shell $(find-makefile-common))
cvsextras 35dc062
cvsextras 35dc062
ifeq ($(MAKEFILE_COMMON),)
cvsextras 35dc062
# attept a checkout
cvsextras 35dc062
define checkout-makefile-common
gafton 8d1b2ab
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
cvsextras 35dc062
endef
cvsextras 35dc062
cvsextras 35dc062
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
cvsextras 35dc062
endif
cvsextras 35dc062
cvsextras 35dc062
include $(MAKEFILE_COMMON)