On Mon, Jul 14, 2014 at 6:49 PM, Will Estes westes...@gmail.com wrote:
I have the following in my Makefile.am, and automake is not using the rule to
build the executable.
tableopts_nr%.c: tableopts.l4
$(FLEX) -P $(subst -,_,$(*F)) $* -o $@ $
tableopts_nr%.$(OBJEXT): tableopts_nr%.c
The % should have been present in the rule. I added it in and reran things and
yes, the rules are copied in. I note that explicit rules for the individual
programs are also copied in, so I assume that's what is overriding the pattern
rules.
I can't do this with suffix rules since $(EXE) when
I have the following in my Makefile.am, and automake is not using the rule to
build the executable.
tableopts_nr%.c: tableopts.l4
$(FLEX) -P $(subst -,_,$(*F)) $* -o $@ $
tableopts_nr%.$(OBJEXT): tableopts_nr%.c
$(COMPILE) -c -o $@ $
tableopts_nr%.tableopts$(EXEEXT):