diff Makefile @ 16296:daedf702e83c

maint: add framework to run syntax-check rules against gnulib sources * cfg.mk: New file, to disable all currently-failing tests. We'll enable them one by one, as they are made to pass. * Makefile (sc_maint): New rule.
author Jim Meyering <meyering@redhat.com>
date Tue, 17 Jan 2012 17:51:40 +0100
parents 18a38c9615f0
children 607ec89b7d97
line wrap: on
line diff
--- a/Makefile	Sat Jan 21 13:09:08 2012 +0100
+++ b/Makefile	Tue Jan 17 17:51:40 2012 +0100
@@ -49,6 +49,13 @@
 		 "  see <$$url>" 1>&2; exit 1; } || :			\
 	else :; fi
 
+# Run all maint.mk syntax-check tests on gnulib's sources.
+sc_maint:
+	rm -f maint.mk; ln -s top/maint.mk maint.mk
+	$(MAKE) -s srcdir=. gnulib_dir=. _build-aux=build-aux \
+            -f cfg.mk -f maint.mk syntax-check
+	rm -f maint.mk
+
 # Files in m4/ that (exceptionally) may use AC_LIBOBJ.
 # Do not include their ".m4" suffix.
 allow_AC_LIBOBJ =	\