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