[aclug-L] Re: master makefile
[Top] [All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
On Fri, 28 Jul 2000, Carl D Cravens wrote:
> In my case, I have a bunch of directories that hold HTML
> template files. Each page.html has a directory named page,
> and each directory has its own Makefile.
>
> all: index.html about.html fred.html
>
> %.html:
> cd $(basename $@) && $(MAKE)
>
> I'm no make expert. I haven't figured out how to (or if you
> can) make it do rules like %.html without a suffix... (that
> is, give it a list of directory names).
Sounds like a shell script with a loop to me :)
#!/bin/bash
for dir in $*
do
(cd $dir; make)
done!
-jeff
--
I could easily overemphasize the importance of good grammar. For example,
I could say: "Bad grammar is the leading cause of slow, painful death in
North America," or "Without good grammar, the United States would have
lost World War II." -- Dave Barry, "An Utterly Absurd Look at Grammar"
-- This is the discussion@xxxxxxxxx list. To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi
|
|