Make update -- still need help

Feb 12, 2009 14:56

If you're a coding whiz who knows make well (I'm starting to doubt that such a person exists), I still need your help.
What I'm trying to do, again, is individually gzip all the .js files under a certain directory. Here's how far I've gotten:

FILES_STATIC = mydir/build/blix/blix.js mydir/build/blarg/blarg.js FILES = $(shell find mydir/build -name '*.js') %.js.gz: %.js gzip -c $< > $@ compress: $(FILES:.js=.js.gz) $(FILES_STATIC:.js=.js.gz) @echo $(FILES)
When compress runs, it should do both the static and generated lists. The generated one evaluates to nothing, though. The echo command correctly prints out the generated list. If I try to echo $^, I get a blank line. Note that the files do not exist at the beginning of the script: they're de-archived before compress is called.

What madman designed make anyways? Did someone really write the language up, put together the first build based on it, and go to bed that night thinking they'd left the programming world a better place?
Previous post Next post
Up