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