https://www.gnu.org/software/make/manual/html_node/Wildcards.html#Wildcards
Says that it accepts the same wildcard characters as bash for expansion inside targets and filenames, so [0-9]-[0-9][0-9].cfg: %m4 $(DEFFILES) .... should work On Mon, Mar 7, 2016 at 2:32 PM, Jeff Jibson <[email protected]> wrote: > I have a single source file, va.m4, and need to setup rules like: > > %s-ii.cfg : %m4 $(DEFFILES) > <tab>$(M4) -I $(CURDIR) -D S=s -D I=ii < $< > $*s-ii.cfg > > > where s is a single digit number, ii is a double digit number, the fist > might be a leading 0 > > I can think of ways to do it with multiple rules, but not a single rule. > Any suggestions? > > /* > PLUG: http://plug.org, #utah on irc.freenode.net > Unsubscribe: http://plug.org/mailman/options/plug > Don't fear the penguin. > */ > /* PLUG: http://plug.org, #utah on irc.freenode.net Unsubscribe: http://plug.org/mailman/options/plug Don't fear the penguin. */
