[openib-general] [TRIVIAL PATCH] osm/Makefile: fix for GNU make-3.81

Sasha Khapyorsky sashak at voltaire.com
Sun Apr 23 09:03:18 PDT 2006


Hello Hal,

In Gnu make-3.81 (unline 3.80) in action lists lines will be concatanated
without leading tab symbol. So lines like

	fi\
	done
	
become 'fidone'. There is fix for osm/Makefile.

Sasha.


Fixes for GNU make-3.81

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>

diff --git a/Makefile b/Makefile
index 3cc70f8..9c86916 100644
--- a/Makefile
+++ b/Makefile
@@ -22,25 +22,25 @@ origmake:
 
 .PHONY : orig
 automake:
-	@for i in $(LIBS); do\
-		if [ -x $$i/autogen.sh ]; then\
-			if !(cd $$i; ./autogen.sh && ./configure && make && make install); then exit 1; fi\
-		fi\
+	@for i in $(LIBS); do \
+		if [ -x $$i/autogen.sh ]; then \
+			if !(cd $$i; ./autogen.sh && ./configure && make && make install); then exit 1; fi \
+		fi \
 	done
-	@for i in $(OSMLIBS); do\
-		if [ -x $(OSM)/$$i/autogen.sh ]; then\
-			if !(cd $(OSM)/$$i; ./autogen.sh && ./configure && make && make install); then exit 1; fi\
-		fi\
+	@for i in $(OSMLIBS); do \
+		if [ -x $(OSM)/$$i/autogen.sh ]; then \
+			if !(cd $(OSM)/$$i; ./autogen.sh && ./configure && make && make install); then exit 1; fi \
+		fi \
 	done
-	@for i in $(DIAG) $(OSM)/opensm; do\
-		if [ -x $$i/autogen.sh ]; then\
-			if !(cd $$i; ./autogen.sh && ./configure); then exit 1; fi\
-		fi\
+	@for i in $(DIAG) $(OSM)/opensm; do \
+		if [ -x $$i/autogen.sh ]; then \
+			if !(cd $$i; ./autogen.sh && ./configure); then exit 1; fi \
+		fi \
 	done
-	@for i in $(DIAG) $(OSM)/opensm; do\
-		if [ -x $$i/autogen.sh ]; then\
-			if !(cd $$i; make && make install); then exit 1; fi\
-		fi\
+	@for i in $(DIAG) $(OSM)/opensm; do \
+		if [ -x $$i/autogen.sh ]; then \
+			if !(cd $$i; make && make install); then exit 1; fi \
+		fi \
 	done
 
 install: BUILD_TARG=install
@@ -63,18 +63,18 @@ depend: rmdep subdirs
 
 .PHONY : subdirs
 subdirs:
-	@for i in $(SUBDIRS); do\
-		if [ -e $$i/Makefile ]; then\
-			if !(cd $$i; make $(BUILD_TARG)); then exit 1; fi\
-		fi\
-	done\
+	@for i in $(SUBDIRS); do \
+		if [ -e $$i/Makefile ]; then \
+			if !(cd $$i; make $(BUILD_TARG)); then exit 1; fi \
+		fi \
+	done
 
 .PHONY : libs_install
 libs_install:
-	@for i in $(LIBS); do\
-		if [ -e $$i/Makefile ]; then\
-			if !(cd $$i; make install); then exit 1; fi\
-		fi\
-	done\
+	@for i in $(LIBS); do \
+		if [ -e $$i/Makefile ]; then \
+			if !(cd $$i; make install); then exit 1; fi \
+		fi \
+	done
 
 export BUILD_TARG



More information about the general mailing list