From 812d320f808e94347078c8045b420ada2d6b71d5 Mon Sep 17 00:00:00 2001
From: "Leigh B. Stoller" <stoller@flux.utah.edu>
Date: Sat, 18 Jun 2005 13:36:34 +0000
Subject: [PATCH] Add the call to setbuildinfo to set the build and version
 info.

---
 GNUmakefile.in | 15 +++++++++++++--
 1 file changed, 13 insertions(+), 2 deletions(-)

diff --git a/GNUmakefile.in b/GNUmakefile.in
index 32bcc3da92..bcf9819780 100644
--- a/GNUmakefile.in
+++ b/GNUmakefile.in
@@ -38,13 +38,13 @@ install:
 # For installation on boss node (okay, paper).
 # 
 boss-install:	install-schemacheck install-sitevarscheck install-dbfillcheck \
-		install-subdirs install-mkdirs 
+		install-subdirs install-mkdirs install-setbuildinfo
 	@echo "DON'T FORGET TO RUN A POST-INSTALL AS ROOT"
 
 #
 # Same target, with the install-schemacheck dependency omitted
 # 
-boss-install-force:	install-subdirs install-mkdirs 
+boss-install-force:	install-subdirs install-mkdirs install-setbuildinfo
 	@echo "DON'T FORGET TO RUN A POST-INSTALL AS ROOT"
 
 post-install:
@@ -121,6 +121,7 @@ endif
 ifneq ($(SYSTEM),CYGWIN_NT-5.1)
 	@$(MAKE) -C capture client
 	@$(MAKE) -C tip client
+	@$(MAKE) -C tools client
 endif
 	@$(MAKE) -C sensors client
 	@$(MAKE) -C tmcd client
@@ -133,6 +134,7 @@ endif
 ifneq ($(SYSTEM),CYGWIN_NT-5.1)
 	@$(MAKE) -C capture client-install
 	@$(MAKE) -C tip client-install
+	@$(MAKE) -C tools client-install
 endif
 	@$(MAKE) -C sensors client-install
 	@$(MAKE) -C tmcd client-install
@@ -204,6 +206,15 @@ install-dbfillcheck:
 	@echo "Checking Initial DB Fill ..."
 	$(DBFILLCHECK)
 
+ifeq ($(TBROOT),/usr/testbed)
+SETBUILDINFO= cd $(OBJDIR)/utils && perl setbuildinfo
+else
+SETBUILDINFO= @echo "Skipping setbuildinfo, since prefix isn't /usr/testbed"
+endif
+install-setbuildinfo:
+	@echo "Setting the Build and Version info"
+	$(SETBUILDINFO)
+
 clean:		clean-subdirs
 distclean:	distclean-subdirs
 	rm -f Makeconf GNUmakefile config.h config.status config.cache config.log
-- 
GitLab