Tom Lane writes:
> But we could provide some security for multiple children of a single
> make by changing the rules to be like
>
> $(srcdir)/parse.h: gram.y
> ifdef YACC
> $(YACC) -d $(YFLAGS) $<
> mv y.tab.h $(srcdir)/parse.h
> mv y.tab.c $(srcdir)/gram.c
> else
> @$(missing) bison $< $@
> endif
>
> $(srcdir)/gram.c: $(srcdir)/parse.h
That seems to be okay, although I think I'd switch gram.c and parse.h for
stylistic reasons.
--
Peter Eisentraut peter_e(at)gmx(dot)net