]> git.saurik.com Git - bison.git/blobdiff - doc/Makefile.am
Declare %code to be a permanent feature.
[bison.git] / doc / Makefile.am
index f5ff34b29687bd10eac94f5e37158199fb986627..3c403275892b69c8fdefc7c2c4f427e61329c8a8 100644 (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