Simon Josefsson <[EMAIL PROTECTED]> wrote: ... Hi Simon,
These are all already done in Makefile.maint :-) > There should be some mechanism to exclude certain files on a per-rule > basis. I'm not yet sure how to do this. Ideas appreciated. That's why coreutils' Makefile.maint uses .x-sc* files and an extra grep to filter each file list. > It should also be possible to add local syntax checks rules in > maint-cfg.mk, and have them used automatically. Mandate a specific target naming convention. Then it's easy to process all *.mk files in order to extract the matching target names. Makefile.maint does this: # Collect the names of rules starting with `sc_'. syntax-check-rules := $(shell sed -n 's/^\(sc_[a-zA-Z0-9_-]*\):.*/\1/p' $(ME)) > It should also be possible to disable certain syntax checks rules that > doesn't work well for a specific project. You can filter out such rules using a per-project setting of local-checks-to-skip = ... in Makefile.cfg. If you want to use only a few rules, you should be able simply (and concisely) to override the default definition of the checks to run. I haven't tried it, but with Makefile.maint, setting local-checks-available might be enough. _______________________________________________ bug-gnulib mailing list bug-gnulib@gnu.org http://lists.gnu.org/mailman/listinfo/bug-gnulib