[Orca-checkins] r402 - in trunk/orca/data_gatherers: aix hp orca_services orcallator procallator winallator

dmberezin at hotmail.com dmberezin at hotmail.com
Thu Nov 4 13:32:20 PST 2004


Author: dmberezin at hotmail.com
Date: Thu Nov  4 13:30:20 2004
New Revision: 402

Modified:
   trunk/orca/data_gatherers/aix/Makefile.in
   trunk/orca/data_gatherers/hp/Makefile.in
   trunk/orca/data_gatherers/orca_services/Makefile.in
   trunk/orca/data_gatherers/orcallator/Makefile.in
   trunk/orca/data_gatherers/procallator/Makefile.in
   trunk/orca/data_gatherers/winallator/Makefile.in
Log:
Fix common block of code in a number of Makefiles

* data_gatherers/aix/Makefile.in
* data_gatherers/procallator/Makefile.in
* data_gatherers/orcallator/Makefile.in
* data_gatherers/hp/Makefile.in
* data_gatherers/orca_services/Makefile.in
* data_gatherers/winallator/Makefile.in
  Fix a bug to properly handle the case when BIN_TARGETS variable is empty.


Modified: trunk/orca/data_gatherers/aix/Makefile.in
==============================================================================
--- trunk/orca/data_gatherers/aix/Makefile.in	(original)
+++ trunk/orca/data_gatherers/aix/Makefile.in	Thu Nov  4 13:30:20 2004
@@ -35,12 +35,10 @@
 
 install: all
 	$(MKDIR) $(bindir)
-	@if test "`echo $(BIN_TARGETS)`"; then \
-	  for file in $(BIN_TARGETS); do \
-	    echo $(INSTALL) $$file $(bindir); \
-	    $(INSTALL) $$file $(bindir); \
-	  done; \
-	fi
+	@for file in `echo $(BIN_TARGETS)`; do \
+	  echo $(INSTALL) $$file $(bindir); \
+	  $(INSTALL) $$file $(bindir); \
+	done
 
 clean:
 	$(RM) $(TARGETS)

Modified: trunk/orca/data_gatherers/hp/Makefile.in
==============================================================================
--- trunk/orca/data_gatherers/hp/Makefile.in	(original)
+++ trunk/orca/data_gatherers/hp/Makefile.in	Thu Nov  4 13:30:20 2004
@@ -35,12 +35,10 @@
 
 install: all
 	$(MKDIR) $(bindir)
-	@if test "`echo $(BIN_TARGETS)`"; then \
-	  for file in $(BIN_TARGETS); do \
-	    echo $(INSTALL) $$file $(bindir); \
-	    $(INSTALL) $$file $(bindir); \
-	  done; \
-	fi
+	@for file in `echo $(BIN_TARGETS)`; do \
+	  echo $(INSTALL) $$file $(bindir); \
+	  $(INSTALL) $$file $(bindir); \
+	done
 
 clean:
 	$(RM) $(TARGETS)

Modified: trunk/orca/data_gatherers/orca_services/Makefile.in
==============================================================================
--- trunk/orca/data_gatherers/orca_services/Makefile.in	(original)
+++ trunk/orca/data_gatherers/orca_services/Makefile.in	Thu Nov  4 13:30:20 2004
@@ -47,18 +47,14 @@
 	$(MKDIR) $(sysconfdir)
 	$(MKDIR) $(RAW_ORCA_SERVICES_DIR)
 	$(MKDIR) $(RRD_ORCA_SERVICES_DIR)
-	@if test "`echo $(BIN_TARGETS)`"; then \
-	  for file in $(BIN_TARGETS); do \
-	    echo $(INSTALL) $$file $(bindir); \
-	    $(INSTALL) $$file $(bindir); \
-	  done; \
-	fi
-	@if test "`echo $(LIBEXEC_TARGETS)`"; then \
-	  for file in $(LIBEXEC_TARGETS); do \
-	    echo $(INSTALL) $$file $(libexecdir); \
-	    $(INSTALL) $$file $(libexecdir); \
-	  done; \
-	fi
+	@for file in `echo $(BIN_TARGETS)`; do \
+	  echo $(INSTALL) $$file $(bindir); \
+	  $(INSTALL) $$file $(bindir); \
+	done
+	@for file in `echo $(LIBEXEC_TARGETS)`; do \
+	  echo $(INSTALL) $$file $(libexecdir); \
+	  $(INSTALL) $$file $(libexecdir); \
+	done
 	@if test -r $(sysconfdir)/orca_services.cfg; then \
 	  date="`date +%Y-%m-%d-%H:%M:%S`"; \
 	  echo $(INSTALL) -m 0644 orca_services.cfg $(sysconfdir)/orca_services.cfg.$$date; \

Modified: trunk/orca/data_gatherers/orcallator/Makefile.in
==============================================================================
--- trunk/orca/data_gatherers/orcallator/Makefile.in	(original)
+++ trunk/orca/data_gatherers/orcallator/Makefile.in	Thu Nov  4 13:30:20 2004
@@ -48,12 +48,10 @@
 	$(MKDIR) $(sysconfdir)
 	$(MKDIR) $(RAW_ORCALLATOR_DIR)
 	$(MKDIR) $(RRD_ORCALLATOR_DIR)
-	@if test "`echo $(BIN_TARGETS)`"; then \
-	  for file in $(BIN_TARGETS); do \
-	    echo $(INSTALL) $$file $(bindir); \
-	    $(INSTALL) $$file $(bindir); \
-	  done; \
-	fi
+	@for file in `echo $(BIN_TARGETS)`; do \
+	  echo $(INSTALL) $$file $(bindir); \
+	  $(INSTALL) $$file $(bindir); \
+	done
 	$(INSTALL) -m 0644 orcallator.se $(libdir)
 	@if test -r $(sysconfdir)/orcallator.cfg; then \
 	  date="`date +%Y-%m-%d-%H:%M:%S`"; \

Modified: trunk/orca/data_gatherers/procallator/Makefile.in
==============================================================================
--- trunk/orca/data_gatherers/procallator/Makefile.in	(original)
+++ trunk/orca/data_gatherers/procallator/Makefile.in	Thu Nov  4 13:30:20 2004
@@ -44,12 +44,10 @@
 	$(MKDIR) $(bindir)
 	$(MKDIR) $(RAW_PROCALLATOR_DIR)
 	$(MKDIR) $(RRD_PROCALLATOR_DIR)
-	@if test "`echo $(BIN_TARGETS)`"; then \
-	  for file in $(BIN_TARGETS); do \
-	    echo $(INSTALL) $$file $(bindir); \
-	    $(INSTALL) $$file $(bindir); \
-	  done; \
-	fi
+	@for file in `echo $(BIN_TARGETS)`; do \
+	  echo $(INSTALL) $$file $(bindir); \
+	  $(INSTALL) $$file $(bindir); \
+	done
 	@if test -r $(sysconfdir)/procallator.cfg; then \
 	  date="`date +%Y-%m-%d-%H:%M:%S`"; \
 	  echo $(INSTALL) -m 0644 procallator.cfg $(sysconfdir)/procallator.cfg.$$date; \

Modified: trunk/orca/data_gatherers/winallator/Makefile.in
==============================================================================
--- trunk/orca/data_gatherers/winallator/Makefile.in	(original)
+++ trunk/orca/data_gatherers/winallator/Makefile.in	Thu Nov  4 13:30:20 2004
@@ -42,12 +42,10 @@
 	$(MKDIR) $(sysconfdir)
 	$(MKDIR) $(RAW_WINALLATOR_DIR)
 	$(MKDIR) $(RRD_WINALLATOR_DIR)
-	@if test "`echo $(BIN_TARGETS)`"; then \
-	  for file in $(BIN_TARGETS); do \
-	    echo $(INSTALL) $$file $(bindir); \
-	    $(INSTALL) $$file $(bindir); \
-	  done; \
-	fi
+	@for file in `echo $(BIN_TARGETS)`; do \
+	  echo $(INSTALL) $$file $(bindir); \
+	  $(INSTALL) $$file $(bindir); \
+	done
 	@if test -r $(sysconfdir)/winallator.cfg; then \
 	  date="`date +%Y-%m-%d-%H:%M:%S`"; \
 	  echo $(INSTALL) -m 0644 winallator.cfg $(sysconfdir)/winallator.cfg.$$date; \



More information about the Orca-checkins mailing list