[xslt] [PATCH] tests: XSLTMark: Override html target in Automake explicitly



As we specified -Wall option for autoreconf in autogen.sh, we got
the following warning while running ./autogen.sh:

| tests/XSLTMark/Makefile.am:420: warning: user target 'html' defined here ...
| automake: ... overrides Automake target 'html' defined here
| tests/XSLTMark/Makefile.am:420: consider using html-local instead of html

Considering that the target name html is already used in its rule,
we use the 'override' keyword to override html target in Automake
explicitly to suppress the above warning.

Reported-by: Tianjin Ke <ketianjin huawei com>
Tested-by: Tianjin Ke <ketianjin huawei com>
Signed-off-by: Junling Zheng <zhengjunling huawei com>
---
 tests/XSLTMark/Makefile.am | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests/XSLTMark/Makefile.am b/tests/XSLTMark/Makefile.am
index 250992c3..fb6f049e 100644
--- a/tests/XSLTMark/Makefile.am
+++ b/tests/XSLTMark/Makefile.am
@@ -417,7 +417,7 @@ game:                       game.xml $(xsltproc)
        fi
        @rm -f $@.tmp
 
-html:                  html.xml $(xsltproc)
+override html:         html.xml $(xsltproc)
        @(echo > .memdump)
        @log=`$(CHECKER) $(xsltproc) \
                $(srcdir)/$@.xsl $< > $@.tmp; \
-- 
2.27.0



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]