X-Git-Url: https://git.draconx.ca/gitweb/cdecl99.git/blobdiff_plain/a0629a04f4fc6093900c9e4703e440d6b0ba24ad..af1f874c4c58d0bd8becd52c892d0b358d08736e:/Makefile.am diff --git a/Makefile.am b/Makefile.am index 031c0a8..b8136eb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -261,19 +261,22 @@ DEV_TOOL_ERROR = { \ 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: