I wonder if someone can help me here. Here's an excerpt from xforms/forms/Makefile.am. How can I make the .fd -> .[Ch] step sensitive to any changes in $(srcdir)/fdfix.sh, $(srcdir)/fdfix[ch].sed?
The obvious .fd.C: $(srcdir)/fdfix.sh $(SHELL) $(SCRIPT) $< has no effect. Second question: should we have a configure test for the presence of fdesign? Angus # These are used to generate the .[Ch] files from the .fd ones. # It would be nice if we could make the .Ch files dependent on the fdfix files. SHELL = /bin/sh SCRIPT = $(srcdir)/fdfix.sh SUFFIXES = .fd SRCS = form_aboutlyx.fd \ form_bibitem.fd \ ... libfdesign_la_SOURCES = $(SRCS:.fd=.C) $(SRCS:.fd=.h) libfdesign.la: $(libfdesign_la_OBJECTS) $(libfdesign_la_DEPENDENCIES) .fd.C: $(SHELL) $(SCRIPT) $<