96952b
From: Peter Lemenkov <lemenkov@gmail.com>
96952b
Date: Sat, 19 Jun 2010 09:59:39 +0400
ebf67f
Subject: [PATCH] Do not install nteventlog and related doc-files on non-win32
ebf67f
 systems
96952b
96952b
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
96952b
---
61833a
 lib/os_mon/doc/src/Makefile |  7 ++++++-
61833a
 lib/os_mon/src/Makefile     | 11 ++++++++++-
96952b
 2 files changed, 16 insertions(+), 2 deletions(-)
96952b
96952b
diff --git a/lib/os_mon/doc/src/Makefile b/lib/os_mon/doc/src/Makefile
61833a
index 08fd23e..5606cfc 100644
96952b
--- a/lib/os_mon/doc/src/Makefile
96952b
+++ b/lib/os_mon/doc/src/Makefile
96952b
@@ -35,12 +35,17 @@ RELSYSDIR = $(RELEASE_PATH)/lib/$(APPLICATION)-$(VSN)
96952b
 # Target Specs
96952b
 # ----------------------------------------------------
96952b
 XML_APPLICATION_FILES = ref_man.xml
96952b
+ifeq ($(findstring win32,$(TARGET)),win32)
96952b
+NTEVENTLOG_DOCFILE=nteventlog.xml
96952b
+else
96952b
+NTEVENTLOG_DOCFILE=
96952b
+endif
96952b
 XML_REF3_FILES = cpu_sup.xml \
96952b
 	disksup.xml \
96952b
 	memsup.xml \
96952b
 	os_mon_mib.xml \
96952b
 	os_sup.xml \
96952b
-	nteventlog.xml
96952b
+	$(NTEVENTLOG_DOCFILE)
96952b
 
96952b
 XML_REF6_FILES = os_mon_app.xml 
96952b
 
96952b
diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile
a6c182
index cd2dade..4e78cf8 100644
96952b
--- a/lib/os_mon/src/Makefile
96952b
+++ b/lib/os_mon/src/Makefile
96952b
@@ -33,8 +33,13 @@ RELSYSDIR = $(RELEASE_PATH)/lib/os_mon-$(VSN)
96952b
 # ----------------------------------------------------
96952b
 # Target Specs
96952b
 # ----------------------------------------------------
96952b
+ifeq ($(findstring win32,$(TARGET)),win32)
96952b
+NTEVENTLOG=nteventlog
96952b
+else
96952b
+NTEVENTLOG=
96952b
+endif
96952b
 MODULES= disksup memsup cpu_sup os_mon os_mon_mib os_sup os_mon_sysinfo \
96952b
-	nteventlog
96952b
+	 $(NTEVENTLOG)
96952b
 
96952b
 INCLUDE=../include
96952b
 CSRC=../c_src
96952b
@@ -78,7 +83,11 @@ docs:
96952b
 # ----------------------------------------------------
96952b
 
96952b
 $(APP_TARGET): $(APP_SRC) ../vsn.mk
96952b
+ifeq ($(findstring win32,$(TARGET)),win32)
a6c182
 	$(vsn_verbose)sed -e 's;%VSN%;$(VSN);' $< > $@
96952b
+else
a6c182
+	$(vsn_verbose)sed -e 's;%VSN%;$(VSN);;s;,\s*nteventlog;;' $< > $@
96952b
+endif
96952b
 
96952b
 $(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
a6c182
 	$(vsn_verbose)sed -e 's;%VSN%;$(VSN);' $< > $@