[ofa-general] [PATCH] opensm/Makefile.am: remove osm_build_id.h junk file generation

Sasha Khapyorsky sashak at voltaire.com
Sun Feb 15 00:27:12 PST 2009


osm_build_id.h is not a valid C file. This is only used for OpenSM debug
mode build determination, which is now available using OSM_DEBUG macro
from osm_config.h.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/Makefile.am |    6 ------
 1 files changed, 0 insertions(+), 6 deletions(-)

diff --git a/opensm/Makefile.am b/opensm/Makefile.am
index 2287edd..75b6dc5 100644
--- a/opensm/Makefile.am
+++ b/opensm/Makefile.am
@@ -7,12 +7,6 @@ ACLOCAL_AMFLAGS = -I config
 
 # we should provide a hint for other apps about the build mode of this project
 install-exec-hook:
-	mkdir -p $(DESTDIR)/$(includedir)
-if DEBUG
-	echo "define osm_build_type \"debug\"" > $(DESTDIR)/$(includedir)/infiniband/opensm/osm_build_id.h
-else
-	echo "define osm_build_type \"free\"" > $(DESTDIR)/$(includedir)/infiniband/opensm/osm_build_id.h
-endif
 	$(top_srcdir)/config/install-sh -m 755 -d $(DESTDIR)/$(sysconfdir)/init.d
 	cp $(top_builddir)/scripts/opensm.init $(DESTDIR)/$(sysconfdir)/init.d/opensmd
 	chmod 755 $(DESTDIR)/$(sysconfdir)/init.d/opensmd
-- 
1.6.1.2.319.gbd9e




More information about the general mailing list