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

Junling Zheng <[email protected]> Fri, 4 Dec 2020 10:25:50 +0800
Newsgroups gmane.comp.gnome.lib.xslt
Message-ID <[email protected]>
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 <[email protected]>
Tested-by: Tianjin Ke <[email protected]>
Signed-off-by: Junling Zheng <[email protected]>
---
 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 [email protected]
 
-html:			html.xml $(xsltproc)
+override html:		html.xml $(xsltproc)
 	@(echo > .memdump)
 	@log=`$(CHECKER) $(xsltproc) \
 		$(srcdir)/[email protected] $< > [email protected]; \
-- 
2.27.0