Re: building executables with pattern rules

2014-07-18 Thread Gavin Smith
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

Re: building executables with pattern rules

2014-07-18 Thread Will Estes
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

building executables with pattern rules

2014-07-14 Thread Will Estes
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):