www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/05/10:58:10

Xref: news2.mv.net comp.os.msdos.djgpp:800
From: alexlehm AT rbg DOT informatik DOT th-darmstadt DOT de (Alexander Lehmann)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with make
Date: 2 Feb 1996 13:32:33 GMT
Organization: Technische Hochschule Darmstadt
Lines: 30
Message-ID: <4et3ph$car@rs18.hrz.th-darmstadt.de>
References: <DM3zBy DOT 30G AT granite DOT mv DOT net>
NNTP-Posting-Host: hp61.rbg.informatik.th-darmstadt.de
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

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 -


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