carlwgeorge / rpms / php

Forked from rpms/php 5 years ago
Clone
cvsdist f00fc59
# Makefile for source rpm: php
cvsdist f00fc59
# $Id$
cvsdist f00fc59
NAME := php
cvsdist f00fc59
SPECFILE = $(firstword $(wildcard *.spec))
8e68e30
UPSTREAM_CHECKS := 
cvsdist f00fc59
40dc3cb
define find-makefile-common
4598589
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
40dc3cb
endef
40dc3cb
40dc3cb
MAKEFILE_COMMON := $(shell $(find-makefile-common))
40dc3cb
40dc3cb
ifeq ($(MAKEFILE_COMMON),)
40dc3cb
# attempt a checkout
40dc3cb
define checkout-makefile-common
40dc3cb
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
40dc3cb
endef
40dc3cb
40dc3cb
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
40dc3cb
endif
40dc3cb
40dc3cb
include $(MAKEFILE_COMMON)