|
Peter Lemenkov |
96952b |
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
Peter Lemenkov |
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
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/os_mon/doc/src/Makefile b/lib/os_mon/doc/src/Makefile
|
|
|
4c0d16 |
index 8e9a4c333c..33b32b09b9 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/os_mon/doc/src/Makefile
|
|
Peter Lemenkov |
96952b |
+++ b/lib/os_mon/doc/src/Makefile
|
|
|
4c0d16 |
@@ -36,11 +36,16 @@ RELSYSDIR = $(RELEASE_PATH)/lib/$(APPLICATION)-$(VSN)
|
|
Peter Lemenkov |
96952b |
# Target Specs
|
|
Peter Lemenkov |
96952b |
# ----------------------------------------------------
|
|
Peter Lemenkov |
96952b |
XML_APPLICATION_FILES = ref_man.xml
|
|
Peter Lemenkov |
96952b |
+ifeq ($(findstring win32,$(TARGET)),win32)
|
|
Peter Lemenkov |
96952b |
+NTEVENTLOG_DOCFILE=nteventlog.xml
|
|
Peter Lemenkov |
96952b |
+else
|
|
Peter Lemenkov |
96952b |
+NTEVENTLOG_DOCFILE=
|
|
Peter Lemenkov |
96952b |
+endif
|
|
Peter Lemenkov |
96952b |
XML_REF3_FILES = cpu_sup.xml \
|
|
Peter Lemenkov |
96952b |
disksup.xml \
|
|
Peter Lemenkov |
96952b |
memsup.xml \
|
|
Peter Lemenkov |
96952b |
os_sup.xml \
|
|
Peter Lemenkov |
96952b |
- nteventlog.xml
|
|
Peter Lemenkov |
96952b |
+ $(NTEVENTLOG_DOCFILE)
|
|
Peter Lemenkov |
96952b |
|
|
|
e5d275 |
XML_REF6_FILES = os_mon_app.xml
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile
|
|
|
4c0d16 |
index 923a31f290..5963351b0f 100644
|
|
Peter Lemenkov |
96952b |
--- a/lib/os_mon/src/Makefile
|
|
Peter Lemenkov |
96952b |
+++ b/lib/os_mon/src/Makefile
|
|
|
4c0d16 |
@@ -34,7 +34,13 @@ RELSYSDIR = $(RELEASE_PATH)/lib/os_mon-$(VSN)
|
|
Peter Lemenkov |
96952b |
# ----------------------------------------------------
|
|
Peter Lemenkov |
96952b |
# Target Specs
|
|
Peter Lemenkov |
96952b |
# ----------------------------------------------------
|
|
|
4c0d16 |
-MODULES= disksup memsup cpu_sup os_mon os_sup os_mon_sysinfo nteventlog
|
|
Peter Lemenkov |
96952b |
+ifeq ($(findstring win32,$(TARGET)),win32)
|
|
Peter Lemenkov |
96952b |
+NTEVENTLOG=nteventlog
|
|
Peter Lemenkov |
96952b |
+else
|
|
Peter Lemenkov |
96952b |
+NTEVENTLOG=
|
|
Peter Lemenkov |
96952b |
+endif
|
|
|
4c0d16 |
+MODULES= disksup memsup cpu_sup os_mon os_sup os_mon_sysinfo \
|
|
Peter Lemenkov |
96952b |
+ $(NTEVENTLOG)
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
INCLUDE=../include
|
|
Peter Lemenkov |
96952b |
CSRC=../c_src
|
|
|
4c0d16 |
@@ -78,7 +84,11 @@ docs:
|
|
Peter Lemenkov |
96952b |
# ----------------------------------------------------
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
$(APP_TARGET): $(APP_SRC) ../vsn.mk
|
|
Peter Lemenkov |
96952b |
+ifeq ($(findstring win32,$(TARGET)),win32)
|
|
|
a6c182 |
$(vsn_verbose)sed -e 's;%VSN%;$(VSN);' $< > $@
|
|
Peter Lemenkov |
96952b |
+else
|
|
|
a6c182 |
+ $(vsn_verbose)sed -e 's;%VSN%;$(VSN);;s;,\s*nteventlog;;' $< > $@
|
|
Peter Lemenkov |
96952b |
+endif
|
|
Peter Lemenkov |
96952b |
|
|
Peter Lemenkov |
96952b |
$(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
|
|
|
a6c182 |
$(vsn_verbose)sed -e 's;%VSN%;$(VSN);' $< > $@
|