data: fix more xmllint validation.

Similarly to the previous commit, the tips and tags validation was never
happening as it was implemented as a custom top-level meson target. It
was not run during a normal build. Now it is.
This commit is contained in:
Jehan 2021-06-18 15:46:41 +02:00
parent 19e545bc1f
commit 2730361928
2 changed files with 10 additions and 4 deletions

View file

@ -19,12 +19,15 @@ gimp_tags_default = custom_target(xmlfilename,
)
if xmllint.found()
run_target('validate-tags',
custom_target('validate-tags',
command: [
xmllint,
'--noout',
'--output', '@OUTPUT@',
'--path', meson.current_source_dir(),
'--valid', gimp_tags_default,
],
output: [ 'validate-tags-output.xml' ],
build_by_default: true,
install: false
)
endif

View file

@ -32,12 +32,15 @@ fortunes_tips = custom_target('fortunes-tips',
)
if xmllint.found()
run_target('validate-tips',
custom_target('validate-tips',
command: [
xmllint,
'--noout',
'--output', '@OUTPUT@',
'--path', meson.current_source_dir(),
'--valid', gimp_tips,
],
output: [ 'validate-tips-output.xml' ],
build_by_default: true,
install: false
)
endif