maint: maintainer-release-check.

* tests/Makefile.am (maintainer-release-check): New.
* Makefile.am (MAINTAINER_CHECKS): New.
Support maintainer-release-check.
* README-hacking: Document it, and syntax-check too.
This commit is contained in:
Akim Demaille
2012-05-08 12:04:24 +02:00
parent dc584206f9
commit a0cd287e64
3 changed files with 16 additions and 10 deletions

View File

@@ -30,16 +30,13 @@ EXTRA_DIST = .prev-version .version \
djgpp/subpipe.c djgpp/subpipe.h djgpp/djunpack.bat \
djgpp/fnchange.lst djgpp/testsuite.sed
.PHONY: maintainer-check
maintainer-check:
$(AM_V_GEN)cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
.PHONY: maintainer-push-check
maintainer-push-check:
$(AM_V_GEN)cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
.PHONY: maintainer-xml-check
maintainer-xml-check:
MAINTAINER_CHECKS = \
maintainer-check \
maintainer-push-check \
maintainer-xml-check \
maintainer-release-check
.PHONY: $(MAINTAINER_CHECKS)
$(MAINTAINER_CHECKS):
$(AM_V_GEN)cd tests && $(MAKE) $(AM_MAKEFLAGS) $@
# See comments in build-aux/git-version-gen. However, we make .version depend

View File

@@ -180,6 +180,9 @@ release:
- Build with -DGNULIB_POSIXCHECK. It suggests gnulib modules that can
fix portability issues.
- Check with `make syntax-check' if there are issues diagnosed by
gnulib.
- run `make maintainer-check' which:
- runs `valgrind -q bison' to run Bison under Valgrind.
- runs the parsers under Valgrind.
@@ -197,6 +200,9 @@ release:
Bison's included XSLT style sheets with the output of --report=all and
--graph.
- running `make maintainer-release-check' takes care of running
maintainer-check, maintainer-push-check and maintainer-xml-check.
- Change tests/atlocal/CFLAGS to add your preferred options. For
instance, `-traditional' to check that the parsers are K&R. Note
that it does not make sense for glr.c, which should be ANSI,

View File

@@ -100,3 +100,6 @@ maintainer-push-check:
.PHONY: maintainer-xml-check
maintainer-xml-check:
BISON_TEST_XML=1 $(MAKE) $(AM_MAKEFLAGS) maintainer-check
.PHONY: maintainer-release-check
maintainer-release-check: maintainer-check maintainer-push-check maintainer-xml-check