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