[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

rpms/elfutils/devel Makefile,1.22,1.23



Author: roland

Update of /cvs/pkgs/rpms/elfutils/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18569/devel

Modified Files:
	Makefile 
Log Message:
Fix boilerplate for merged setup.


Index: Makefile
===================================================================
RCS file: /cvs/pkgs/rpms/elfutils/devel/Makefile,v
retrieving revision 1.22
retrieving revision 1.23
diff -u -r1.22 -r1.23
--- Makefile	20 Apr 2007 19:25:46 -0000	1.22
+++ Makefile	3 May 2007 22:49:17 -0000	1.23
@@ -3,7 +3,22 @@
 NAME := elfutils
 SPECFILE = elfutils.spec
 
-include ../common/Makefile.common
+define find-makefile-common
+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
+endef
+
+MAKEFILE_COMMON := $(shell $(find-makefile-common))
+
+ifeq ($(MAKEFILE_COMMON),)
+# attept a checkout
+define checkout-makefile-common
+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
+endef
+
+MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
+endif
+
+include $(MAKEFILE_COMMON)
 
 MONOTONE = mtn
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]