Display the changes in cross-options.texi.

* build-aux/cross-options.pl ($sep): New, to separate items.
	* doc/Makefile.am ($(srcdir)/cross-options.texi): Use diff to display
	the changes.
This commit is contained in:
Akim Demaille
2008-11-21 21:21:52 +01:00
committed by Joel E. Denny
parent 72183df4da
commit fadb13b5b3
3 changed files with 14 additions and 2 deletions

View File

@@ -26,10 +26,12 @@ clean-local:
CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl
$(srcdir)/cross-options.texi: $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL)
-rm -f $@ $@.tmp
mv -f $@ $@~ || : >$@~
-rm -f $@.tmp
cd $(top_builddir)/src && $(MAKE) $(AM_MAKEFLAGS) bison
$(top_builddir)/src/bison --help \
| perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >$@.tmp
diff -u $@~ $@.tmp || true
mv $@.tmp $@
MAINTAINERCLEANFILES = $(srcdir)/cross-options.texi