diff --git a/Makefile b/Makefile index 868156e8f..ecb0a5bf8 100644 --- a/Makefile +++ b/Makefile @@ -369,6 +369,9 @@ validateXML: createXMLExamples checkCWEEntries: /tmp/errorlist.xml ./tools/listErrorsWithoutCWE.py -F /tmp/errorlist.xml +.PHONY: validateRules +validateRules: + xmllint --noout rules/*.xml ###### Build diff --git a/tools/dmake.cpp b/tools/dmake.cpp index bc057ec64..b813c7d40 100644 --- a/tools/dmake.cpp +++ b/tools/dmake.cpp @@ -473,6 +473,9 @@ int main(int argc, char **argv) fout << "\txmllint --noout --relaxng cppcheck-errors.rng /tmp/example.xml\n"; fout << "\ncheckCWEEntries: /tmp/errorlist.xml\n"; fout << "\t./tools/listErrorsWithoutCWE.py -F /tmp/errorlist.xml\n"; + fout << ".PHONY: validateRules\n", + fout << "validateRules:\n"; + fout << "\txmllint --noout rules/*.xml\n"; fout << "\n###### Build\n\n";