$(t_rng_test_OBJECTS): $(gnulib_headers)
EXTRA_DIST += t/xos256p.c
+src/error.lo: src/errmsg.h
+src/output.lo: src/parse.h src/specstr.h
+src/parse-decl.lo: src/scan.h src/parse.h src/typemap.h src/errmsg.h
src/parse.lo: src/scan.h src/errmsg.h
src/scan.lo: src/parse.h src/errmsg.h
-src/parse-decl.lo: src/scan.h src/parse.h src/typemap.h src/errmsg.h
-src/output.lo: src/specstr.h
-src/error.lo: src/errmsg.h
t/declgen.$(OBJEXT): t/typegen.h
t/cdeclerr.$(OBJEXT): src/errmsg.h
echo " *** configure, consired setting $$toolvar and re-running configure."; \
echo " *** See config.log for more details."; } >&2; false
+DO_BISON = $(BISON) $(BISON_COMPAT) $(BISONFLAGS)
+
.y.c: ;
.y.stamp:
if !HAVE_BISON
$(BISON_V)tool=bison toolvar=BISON toolsrc=$<; $(DEV_TOOL_ERROR)
endif
- $(AM_V_at) touch $@.tmp
- $(BISON_V) $(BISON) $(BISON_COMPAT) -o $*.c --defines=$*.h.tmp $(BISONFLAGS) $<
- $(AM_V_at) if cmp $*.h.tmp $*.h >/dev/null 2>&1; then \
- rm -f $*.h.tmp; \
- else \
- mv -f $*.h.tmp $*.h; \
- fi
+ $(BISON_V) : >$@.tmp
+ $(AM_V_at) $(DO_BISON) -o $*.c.tmp --defines=$*.h.tmp $<
+ $(AM_V_at) $(AWK) -f $(srcdir)/src/fix-yytname.awk $*.c.tmp >$*.c.t2
+ $(AM_V_at) mv -f $*.c.t2 $*.c
+ $(AM_V_at) cmp $*.h.tmp $*.h >/dev/null 2>&1 || mv -f $*.h.tmp $*.h
+ $(AM_V_at) rm -f $*.c.tmp $*.h.tmp
$(AM_V_at) mv -f $@.tmp $@
+src/parse.stamp: $(srcdir)/src/fix-yytname.awk
+EXTRA_DIST += src/fix-yytname.awk
.l.c: ;
.l.stamp: