]> git.saurik.com Git - bison.git/blobdiff - doc/local.mk
Use the symbol properties to output the printer/destructor for lalr1.cc.
[bison.git] / doc / local.mk
index 15a232f82dc726870f844484a4a0d0b27e4a5295..d13979049f67edb464875f0c4421beb978fc7983 100644 (file)
@@ -1,4 +1,3 @@
-## Process this file with automake to produce Makefile.in -*-Makefile-*-
 ## Copyright (C) 2001, 2002, 2003, 2005, 2006, 2007, 2008 Free Software
 ## Foundation, Inc.
 
@@ -30,9 +29,12 @@ clean-local:
 CROSS_OPTIONS_PL = $(top_srcdir)/build-aux/cross-options.pl
 CROSS_OPTIONS_TEXI = $(top_srcdir)/doc/cross-options.texi
 $(CROSS_OPTIONS_TEXI): $(top_srcdir)/src/getargs.c $(CROSS_OPTIONS_PL)
-       -rm -f $@ $@.tmp
-       $(MAKE) $(AM_MAKEFLAGS) src/bison
-       $(top_builddir)/src/bison --help | perl $(CROSS_OPTIONS_PL) >$@.tmp
+       mv -f $@ $@~ || : >$@~
+       -rm -f $@.tmp
+       $(MAKE) $(AM_MAKEFLAGS) src/bison$(EXEEXT)
+       $(top_builddir)/src/bison --help |                              \
+       perl $(CROSS_OPTIONS_PL) $(top_srcdir)/src/scan-gram.l >$@.tmp
+       diff -u $@~ $@.tmp || true
        mv $@.tmp $@
 MAINTAINERCLEANFILES = $(CROSS_OPTIONS_TEXI)