www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/04/05/11:42:16

Xref: news2.mv.net comp.os.msdos.djgpp:2465
From: alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de (Alexander Lehmann)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: GNU MAKE NOT WORKING WITH GCC
Date: 3 Apr 1996 21:54:32 GMT
Organization: Technische Hochschule Darmstadt
Lines: 28
Message-ID: <4jus2o$11c2@rs18.hrz.th-darmstadt.de>
References: <31626758 DOT 41EE AT nando DOT net>
NNTP-Posting-Host: hp62.rbg.informatik.th-darmstadt.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019