|
aluchko |
712016b |
# Makefile for source rpm: eclipse
|
|
|
003dbee |
# $Id: Makefile,v 1.4 2004/11/26 20:39:39 bkonrath Exp $
|
|
cvsdist |
534d0c9 |
NAME := eclipse
|
|
aluchko |
712016b |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
cvsdist |
534d0c9 |
|
|
|
003dbee |
define find-makefile-common
|
|
|
003dbee |
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
|
|
|
003dbee |
endef
|
|
|
003dbee |
|
|
|
003dbee |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
|
003dbee |
|
|
|
003dbee |
ifeq ($(MAKEFILE_COMMON),)
|
|
|
003dbee |
# attempt a checkout
|
|
|
003dbee |
define checkout-makefile-common
|
|
|
003dbee |
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
|
|
|
003dbee |
endef
|
|
|
003dbee |
|
|
|
003dbee |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
|
003dbee |
endif
|
|
|
003dbee |
|
|
|
003dbee |
include $(MAKEFILE_COMMON)
|