|
|
ed68a4a |
# Makefile for source rpm: sympy
|
|
|
e37b333 |
# $Id: Makefile,v 1.1 2008/10/15 05:33:28 huzaifas Exp $
|
|
|
ed68a4a |
NAME := sympy
|
|
|
ed68a4a |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
|
ed68a4a |
|
|
|
ed68a4a |
define find-makefile-common
|
|
|
e37b333 |
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$d/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
|
ed68a4a |
endef
|
|
|
ed68a4a |
|
|
|
ed68a4a |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
|
ed68a4a |
|
|
|
ed68a4a |
ifeq ($(MAKEFILE_COMMON),)
|
|
|
ed68a4a |
# attept a checkout
|
|
|
ed68a4a |
define checkout-makefile-common
|
|
|
ed68a4a |
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
|
|
|
ed68a4a |
endef
|
|
|
ed68a4a |
|
|
|
ed68a4a |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
|
ed68a4a |
endif
|
|
|
ed68a4a |
|
|
|
ed68a4a |
include $(MAKEFILE_COMMON)
|