Mail Archives: djgpp/1996/04/05/11:42:16
Kenneth Targosky (kjt AT nando DOT net) wrote:
: Since I am writing I have another question. In other versions of make
: a for loop is supported. I try the same loop with gnu and it does not
: work. Is there any looping capabilties in GMAKE. An example loop
: follows:
: all:
: for dir in $(DIR);{cd $$dir; make all; cd ..}
: lib:
: for dir in $(DIR);{cd $$dir; make lib; cd ..}
The for support isn't acutally in GNU make, but in the unix sh-shell that
is usually called when executing each command. Since in DOS you are stuck
with the command.com, you cannot anything so fancy. You may be able to write
something with the for %n in (...) notation, but this will only work with
wildcards AFAIK. Well, DOS is crap.
You could try to locate a port of GNU bash to use instead of command.com,
though.
bye, Alexander
--
Alexander Lehmann, | "On the Internet,
alex AT hal DOT rhein-main DOT de (plain, MIME, NeXT) | nobody knows
alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de (plain) | you're a dog."
<URL:http://www.student.informatik.th-darmstadt.de/~alexlehm/>
- Raw text -