bd3776f
# Makefile for source rpm: latexmk
411044d
# $Id: Makefile,v 1.1 2007/03/30 01:06:04 jwboyer Exp $
bd3776f
NAME := latexmk
bd3776f
SPECFILE = $(firstword $(wildcard *.spec))
bd3776f
bd3776f
define find-makefile-common
411044d
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
bd3776f
endef
bd3776f
bd3776f
MAKEFILE_COMMON := $(shell $(find-makefile-common))
bd3776f
bd3776f
ifeq ($(MAKEFILE_COMMON),)
bd3776f
# attept a checkout
bd3776f
define checkout-makefile-common
bd3776f
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
bd3776f
endef
bd3776f
bd3776f
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
bd3776f
endif
bd3776f
bd3776f
include $(MAKEFILE_COMMON)