Re: [PATCH] extract gifs from icons.shar at make time

From: Robert Collins <robert.collins@dont-contact.us>
Date: Sat, 9 Dec 2000 12:38:11 +1100

Oh. Hmm..

man make
==
   When make is evaluating one of these conditional expressions, and it en-
     counters a word it doesn't recognize, either the ``make'' or ``defined''
     expression is applied to it, depending on the form of the conditional.
     If the form is `.ifdef' or `.ifndef', the ``defined'' expression is ap-
     plied. Similarly, if the form is `.ifmake' or `.ifnmake', the ``make''
     expression is applied.

     If the conditional evaluates to true the parsing of the makefile contin-
     ues as before. If it evaluates to false, the following lines are
     skipped. In both cases this continues until a `.else' or `.endif' is
     found.

     For loops are typically used to apply a set of rules to a list of files.
     The syntax of a for loop is:

     .for variable in expression

             <make-rules>

     .endfor
     After the for expression is evaluated, it is split into words. The iter-
     ation variable is successively set to each word, and substituted in the
     make-rules inside the body of the for loop.
==

back to the drawing board... I'll find another way (hopefully more portable).

Rob

----- Original Message -----
From: "Duane Wessels" <wessels@squid-cache.org>
To: "Robert Collins" <robert.collins@itdomain.com.au>
Cc: <squid-dev@squid-cache.org>
Sent: Saturday, December 09, 2000 11:14 AM
Subject: Re: [PATCH] extract gifs from icons.shar at make time

>
>
> On Sat, 9 Dec 2000, Robert Collins wrote:
>
> > -all:
> > +all: $(ICONS)
> >
> > +.for iconfile in $(ICONS)
> > +$(iconfile): extractgifs
> > +.endfor
>
> sj-wessels squid-2.4/icons 39% uname -a
> OSF1 sj.cache.nlanr.net V3.2 148 alpha
> sj-wessels squid-2.4/icons 40% make
> Make: Makefile: Must be a separator on line 51. Stop.
>
>
Received on Fri Dec 08 2000 - 18:29:56 MST

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:13:03 MST