Let's say I have a Makefile with two sets of source files that differ
by their suffix, but I want the same command to be applied to them:

# begin

JS_SRCS = foo.js bar.js
CSS_SRCS = quux.css frob.css

%.min.js : %.js
        minify $< > $@

%.min.css : %.css
        minify $< > $@

all : ${JS_SRCS} ${CSS_SRCS}

# end

So make would produce: foo.min.js bar.min.js quux.min.css frob.min.css

Is it possible to combine the two rules with the minify command into a
single rule?

Cheers,
-Paul

-- 
Paul Smith
http://www.pauladamsmith.com/


_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make

Reply via email to