Mail Archives: djgpp/1996/02/05/10:58:10
coomar AT iitk DOT ernet DOT in wrote:
: Hello!
: I am having some problem with dmake 3.8 .
: Consider the following lines ina makefile for eg:
: libraries: config.h
: (cd sources; make)
: when I type 'make libraries', It takes the line (cd sources; make) as single
: line and hence gives 'BAD COMMAND OR FILENAME' message. I am running it on
: DOS 6.22. Same problem happens with gnu make 3.7.1 also. Any solutions?
I think that commands in ()s are not supported by DOS command at all.
On unix, when a sequence of commands in put into parentheses, a subshell is
created which then executes that commands (this is important for e.g. $CWD
and other environment variables).
Since DOS doesn't have links, I think it would be ok to use
cd source;make;cd .. (if command interprets ;, I'm not sure) If that doesn't
probably you can put the commands in separate lines, which doesn't work
for unix, since it calls a subshell for each line it executes.
Or you could try to get a bash implementation for DOS and use that instead
of command, if necessary with bash -c (cd sources; make).
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 -