[PATCH 2/4] build: require GNU make to run the maintainer checks

2012-01-28 Thread Stefano Lattarini
This is not a real regression in portability, since most maintainer check rules already assumed GNU grep, and were anyway only meant to run on the developers' systems. This change will allow us to take advantage, in future changes, of more GNU make features, thus simplifying or optimizing some of

[PATCH 3/4] maintcheck: take advantage of some GNU make features

2012-01-28 Thread Stefano Lattarini
We can do so now that our maintainer checks require GNU make unconditionally. * syntax-check.mk (ams, xtests): Redefine as "immediate variables", using the GNU make $(shell ...) builtin. (maintainer-check-list-of-tests): Take advantage of GNU make "-C" option. Don't use $(AM_MAKEFLAGS), we should

[PATCH 1/4] maintcheck: refactor rules checking '*.am' files

2012-01-28 Thread Stefano Lattarini
A small refactoring in our syntax-check to avoid code duplication and to ensure more uniform checking. This change introduces some new failures in syntax-check rules (both real and spurious), that will be fixed in follow-up changes and code reorganizations. * Makefile.am (ams): New variable, hold

[PATCH 0/4] {master} maintainer checks: improve a little and reorganize

2012-01-28 Thread Stefano Lattarini
I will push this series to master in a couple of days if there is no objection. Regards, Stefano Stefano Lattarini (4): maintcheck: refactor rules checking '*.am' files build: require GNU make to run the maintainer checks maintcheck: take advantage of some GNU make features maintcheck:

[PATCH 4/4] maintcheck: fix real and spurious warnings

2012-01-28 Thread Stefano Lattarini
* lib/Makefile.am (install-data-hook): Correctly quote $(DESTDIR) occurrences. * Makefile.am (install-exec-hook, uninstall-hook): Likewise. (autodiffs): Prefer '$(am__cd)' to plain 'cd', where warranted. * doc/Makefile.am ($(srcdir)/amhello-1.0.tar.gz): Likewise. Also, prefer using AC_SUBST'd $(ab

[FYI] Merge branch 'maint' into branch-1.11

2012-01-28 Thread Stefano Lattarini
commit 4fbec2fffe9d98470b3c5d1d03a94e32660366b0 Merge: 73b1e44 0436a1e Author: Stefano Lattarini AuthorDate: Sat Jan 28 14:09:56 2012 +0100 Commit: Stefano Lattarini CommitDate: Sat Jan 28 14:09:56 2012 +0100 Merge branch 'maint' into branch-1.11 * maint: tests: avoid spur