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
f92c4b5
index 8e3882bfdc..ea999cf9c7 100644
96952bd
--- a/lib/os_mon/doc/src/Makefile
96952bd
+++ b/lib/os_mon/doc/src/Makefile
68c6fc7
@@ -31,11 +31,16 @@ APPLICATION=os_mon
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_sup.xml \
96952bd
-	nteventlog.xml
96952bd
+	$(NTEVENTLOG_DOCFILE)
96952bd
 
e5d275e
 XML_REF6_FILES = os_mon_app.xml
96952bd
 
96952bd
diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile
0eed247
index e28fb12548..ee32f3946f 100644
96952bd
--- a/lib/os_mon/src/Makefile
96952bd
+++ b/lib/os_mon/src/Makefile
4c0d16a
@@ -34,7 +34,13 @@ RELSYSDIR = $(RELEASE_PATH)/lib/os_mon-$(VSN)
96952bd
 # ----------------------------------------------------
96952bd
 # Target Specs
96952bd
 # ----------------------------------------------------
68c6fc7
-MODULES= disksup memsup cpu_sup os_mon os_mon_mib os_sup os_mon_sysinfo nteventlog
96952bd
+ifeq ($(findstring win32,$(TARGET)),win32)
96952bd
+NTEVENTLOG=nteventlog
96952bd
+else
96952bd
+NTEVENTLOG=
96952bd
+endif
68c6fc7
+MODULES= disksup memsup cpu_sup os_mon os_mon_mib os_sup os_mon_sysinfo \
96952bd
+	 $(NTEVENTLOG)
96952bd
 
96952bd
 INCLUDE=../include
96952bd
 CSRC=../c_src
4c0d16a
@@ -78,7 +84,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);' $< > $@