besser82 / rpms / xcb-proto

Forked from rpms/xcb-proto 4 years ago
Clone

Blame Makefile

7631c62
# Makefile for source rpm: xcb-proto
7631c62
# $Id$
7631c62
NAME := xcb-proto
7631c62
SPECFILE = $(firstword $(wildcard *.spec))
7631c62
7631c62
define find-makefile-common
7631c62
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
7631c62
endef
7631c62
7631c62
MAKEFILE_COMMON := $(shell $(find-makefile-common))
7631c62
7631c62
ifeq ($(MAKEFILE_COMMON),)
7631c62
# attept a checkout
7631c62
define checkout-makefile-common
7631c62
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
7631c62
endef
7631c62
7631c62
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
7631c62
endif
7631c62
7631c62
include $(MAKEFILE_COMMON)