4ff084e
# Makefile for source rpm: ocaml-ssl
bbb3295
# $Id: Makefile,v 1.1 2007/07/25 16:14:25 wtogami Exp $
4ff084e
NAME := ocaml-ssl
4ff084e
SPECFILE = $(firstword $(wildcard *.spec))
4ff084e
4ff084e
define find-makefile-common
bbb3295
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
4ff084e
endef
4ff084e
4ff084e
MAKEFILE_COMMON := $(shell $(find-makefile-common))
4ff084e
4ff084e
ifeq ($(MAKEFILE_COMMON),)
4ff084e
# attept a checkout
4ff084e
define checkout-makefile-common
4ff084e
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
4ff084e
endef
4ff084e
4ff084e
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
4ff084e
endif
4ff084e
4ff084e
include $(MAKEFILE_COMMON)