2010-06-23 07:42:20 +00:00
|
|
|
From: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
Date: Sat, 19 Jun 2010 09:59:39 +0400
|
2011-07-21 05:43:32 +00:00
|
|
|
Subject: [PATCH] Do not install nteventlog and related doc-files on non-win32
|
|
|
|
systems
|
2010-06-23 07:42:20 +00:00
|
|
|
|
|
|
|
Signed-off-by: Peter Lemenkov <lemenkov@gmail.com>
|
|
|
|
|
|
|
|
diff --git a/lib/os_mon/doc/src/Makefile b/lib/os_mon/doc/src/Makefile
|
2022-03-29 17:46:16 +00:00
|
|
|
index 8e3882bfdc..ea999cf9c7 100644
|
2010-06-23 07:42:20 +00:00
|
|
|
--- a/lib/os_mon/doc/src/Makefile
|
|
|
|
+++ b/lib/os_mon/doc/src/Makefile
|
2020-04-19 21:16:20 +00:00
|
|
|
@@ -31,11 +31,16 @@ APPLICATION=os_mon
|
2010-06-23 07:42:20 +00:00
|
|
|
# Target Specs
|
|
|
|
# ----------------------------------------------------
|
|
|
|
XML_APPLICATION_FILES = ref_man.xml
|
|
|
|
+ifeq ($(findstring win32,$(TARGET)),win32)
|
|
|
|
+NTEVENTLOG_DOCFILE=nteventlog.xml
|
|
|
|
+else
|
|
|
|
+NTEVENTLOG_DOCFILE=
|
|
|
|
+endif
|
|
|
|
XML_REF3_FILES = cpu_sup.xml \
|
|
|
|
disksup.xml \
|
|
|
|
memsup.xml \
|
|
|
|
os_sup.xml \
|
|
|
|
- nteventlog.xml
|
|
|
|
+ $(NTEVENTLOG_DOCFILE)
|
|
|
|
|
2018-02-20 13:26:06 +00:00
|
|
|
XML_REF6_FILES = os_mon_app.xml
|
2010-06-23 07:42:20 +00:00
|
|
|
|
|
|
|
diff --git a/lib/os_mon/src/Makefile b/lib/os_mon/src/Makefile
|
2022-07-13 18:52:50 +00:00
|
|
|
index e28fb12548..ee32f3946f 100644
|
2010-06-23 07:42:20 +00:00
|
|
|
--- a/lib/os_mon/src/Makefile
|
|
|
|
+++ b/lib/os_mon/src/Makefile
|
2019-07-16 13:16:12 +00:00
|
|
|
@@ -34,7 +34,13 @@ RELSYSDIR = $(RELEASE_PATH)/lib/os_mon-$(VSN)
|
2010-06-23 07:42:20 +00:00
|
|
|
# ----------------------------------------------------
|
|
|
|
# Target Specs
|
|
|
|
# ----------------------------------------------------
|
2020-04-19 21:16:20 +00:00
|
|
|
-MODULES= disksup memsup cpu_sup os_mon os_mon_mib os_sup os_mon_sysinfo nteventlog
|
2010-06-23 07:42:20 +00:00
|
|
|
+ifeq ($(findstring win32,$(TARGET)),win32)
|
|
|
|
+NTEVENTLOG=nteventlog
|
|
|
|
+else
|
|
|
|
+NTEVENTLOG=
|
|
|
|
+endif
|
2020-04-19 21:16:20 +00:00
|
|
|
+MODULES= disksup memsup cpu_sup os_mon os_mon_mib os_sup os_mon_sysinfo \
|
2010-06-23 07:42:20 +00:00
|
|
|
+ $(NTEVENTLOG)
|
|
|
|
|
|
|
|
INCLUDE=../include
|
|
|
|
CSRC=../c_src
|
2019-07-16 13:16:12 +00:00
|
|
|
@@ -78,7 +84,11 @@ docs:
|
2010-06-23 07:42:20 +00:00
|
|
|
# ----------------------------------------------------
|
|
|
|
|
|
|
|
$(APP_TARGET): $(APP_SRC) ../vsn.mk
|
|
|
|
+ifeq ($(findstring win32,$(TARGET)),win32)
|
2013-02-04 08:22:32 +00:00
|
|
|
$(vsn_verbose)sed -e 's;%VSN%;$(VSN);' $< > $@
|
2010-06-23 07:42:20 +00:00
|
|
|
+else
|
2013-02-04 08:22:32 +00:00
|
|
|
+ $(vsn_verbose)sed -e 's;%VSN%;$(VSN);;s;,\s*nteventlog;;' $< > $@
|
2010-06-23 07:42:20 +00:00
|
|
|
+endif
|
|
|
|
|
|
|
|
$(APPUP_TARGET): $(APPUP_SRC) ../vsn.mk
|
2013-02-04 08:22:32 +00:00
|
|
|
$(vsn_verbose)sed -e 's;%VSN%;$(VSN);' $< > $@
|