|
Kevin Fenzi |
05260b |
# Makefile for source rpm: ecryptfs-utils
|
|
Kevin Fenzi |
05260b |
# $Id$
|
|
Kevin Fenzi |
05260b |
NAME := ecryptfs-utils
|
|
Kevin Fenzi |
05260b |
SPECFILE = $(firstword $(wildcard *.spec))
|
|
Kevin Fenzi |
05260b |
|
|
Kevin Fenzi |
05260b |
define find-makefile-common
|
|
Kevin Fenzi |
05260b |
for d in common ../common ../../common ; do if [ -f $$d/Makefile.common ] ; then if [ -f $$d/CVS/Root -a -w $$/Makefile.common ] ; then cd $$d ; cvs -Q update ; fi ; echo "$$d/Makefile.common" ; break ; fi ; done
|
|
Kevin Fenzi |
05260b |
endef
|
|
Kevin Fenzi |
05260b |
|
|
Kevin Fenzi |
05260b |
MAKEFILE_COMMON := $(shell $(find-makefile-common))
|
|
Kevin Fenzi |
05260b |
|
|
Kevin Fenzi |
05260b |
ifeq ($(MAKEFILE_COMMON),)
|
|
Kevin Fenzi |
05260b |
# attept a checkout
|
|
Kevin Fenzi |
05260b |
define checkout-makefile-common
|
|
Kevin Fenzi |
05260b |
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
|
|
Kevin Fenzi |
05260b |
endef
|
|
Kevin Fenzi |
05260b |
|
|
Kevin Fenzi |
05260b |
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
|
|
Kevin Fenzi |
05260b |
endif
|
|
Kevin Fenzi |
05260b |
|
|
Kevin Fenzi |
05260b |
include $(MAKEFILE_COMMON)
|