Complete.Org: Mailing Lists: Archives: discussion: July 2000:
[aclug-L] Re: master makefile
Home

[aclug-L] Re: master makefile

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: discussion@xxxxxxxxx
Subject: [aclug-L] Re: master makefile
From: Carl D Cravens <raven@xxxxxxxxxxx>
Date: Fri, 28 Jul 2000 07:43:13 -0500 (CDT)
Reply-to: discussion@xxxxxxxxx

On Thu, 27 Jul 2000, John Reinke wrote:

> A single rule in this makefile would essentially be the same as if I
> changed into the corresponding directory, ran make on that makefile, and
> changed back out of that directory. However, it needs to be able to handle
> some or all of the makefiles at a time, depending on what is specified when
> it is run.

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).

--
Carl D Cravens (raven@xxxxxxxxxxx)
You can tell the character of a man by the friends he keeps.
   -Dr. Ed Cole


-- This is the discussion@xxxxxxxxx list.  To unsubscribe,
visit http://tmp2.complete.org/cgi-bin/listargate-aclug.cgi


[Prev in Thread] Current Thread [Next in Thread]