tstellar / rpms / sssd

Forked from rpms/sssd 3 years ago
Clone
240ceae
# Makefile for source rpm: sssd
e3c8413
# $Id: Makefile,v 1.1 2009/03/09 16:42:03 toshio Exp $
240ceae
NAME := sssd
240ceae
SPECFILE = $(firstword $(wildcard *.spec))
240ceae
240ceae
define find-makefile-common
e3c8413
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
240ceae
endef
240ceae
240ceae
MAKEFILE_COMMON := $(shell $(find-makefile-common))
240ceae
240ceae
ifeq ($(MAKEFILE_COMMON),)
240ceae
# attept a checkout
240ceae
define checkout-makefile-common
240ceae
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
240ceae
endef
240ceae
240ceae
MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
240ceae
endif
240ceae
240ceae
include $(MAKEFILE_COMMON)