churchyard / rpms / python3

Forked from rpms/python3 4 years ago
Clone

Blame Makefile

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