Run xmllint on cfg/cppcheck-cfg.rng

This commit is contained in:
amai2012 2019-11-17 16:25:10 +01:00
parent 1d441f64c1
commit 0024c3e446
2 changed files with 3 additions and 1 deletions

View File

@ -365,6 +365,7 @@ ConfigFilesCHECKED := $(patsubst %.cfg,%.checked,$(ConfigFiles))
%.checked:%.cfg
xmllint --noout --relaxng cfg/cppcheck-cfg.rng $<
validateCFG: ${ConfigFilesCHECKED}
xmllint --noout cfg/cppcheck-cfg.rng
# Validation of platforms files:
PlatformFiles := $(wildcard platforms/*.xml)

View File

@ -468,7 +468,8 @@ int main(int argc, char **argv)
fout << ".PHONY: validateCFG\n";
fout << "%.checked:%.cfg\n";
fout << "\txmllint --noout --relaxng cfg/cppcheck-cfg.rng $<\n";
fout << "validateCFG: ${ConfigFilesCHECKED}\n\n";
fout << "validateCFG: ${ConfigFilesCHECKED}\n";
fout << "\txmllint --noout cfg/cppcheck-cfg.rng\n\n";
fout << "# Validation of platforms files:\n";
fout << "PlatformFiles := $(wildcard platforms/*.xml)\n";
fout << "PlatformFilesCHECKED := $(patsubst %.xml,%.checked,$(PlatformFiles))\n";