rpms/gqview/devel Makefile,1.1,1.2

Michael Schwendt (mschwendt) fedora-extras-commits at redhat.com
Fri Nov 26 09:05:59 UTC 2004


Changeset from: mschwendt

Update of /cvs/extras/rpms/gqview/devel
In directory cvs.fedora.redhat.com:/tmp/cvs-serv17876

Modified Files:
	Makefile 
Log Message:
Fix Makefile from bad cvs-import


Index: Makefile
===================================================================
RCS file: /cvs/extras/rpms/gqview/devel/Makefile,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- Makefile	25 Nov 2004 21:40:22 -0000	1.1
+++ Makefile	26 Nov 2004 09:05:57 -0000	1.2
@@ -4,18 +4,18 @@
 SPECFILE = $(firstword $(wildcard *.spec))
 
 define find-makefile-common
-for d in common ../common ../../common ; do if [ -f 4665d/Makefile.common ] ; then if [ -f 4665d/CVS/Root -a -w 4665/Makefile.common ] ; then cd 4665d ; cvs -Q update ; fi ; echo "4665d/Makefile.common" ; break ; fi ; done
+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 := 
+MAKEFILE_COMMON	:= $(shell $(find-makefile-common))
 
-ifeq (,)
+ifeq ($(MAKEFILE_COMMON),)
 # attept a checkout
 define checkout-makefile-common
-test -f CVS/Root && { cvs -Q -d 4665(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
+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 := 
+MAKEFILE_COMMON := $(shell $(checkout-makefile-common))
 endif
 
-include 
+include $(MAKEFILE_COMMON)




More information about the fedora-extras-commits mailing list