www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1996/02/07/21:04:04

Xref: news2.mv.net comp.os.msdos.djgpp:860
From: piet AT stego DOT cs DOT ruu DOT nl (Piet van Oostrum)
Newsgroups: comp.os.msdos.djgpp
Subject: Re: Problem with make
Date: 03 Feb 1996 17:33:22 +0100
Organization: Universiteit Utrecht, Dept. of Computer Science
Lines: 36
Sender: piet AT stego DOT cs DOT ruu DOT nl
Message-ID: <wzu418qsh9.fsf@stego.cs.ruu.nl>
References: <DM3zBy DOT 30G AT granite DOT mv DOT net>
NNTP-Posting-Host: stego.cs.ruu.nl
In-reply-to: coomar@iitk.ernet.in's message of Thu, 1 Feb 1996 20:56:58 GMT
To: coomar AT iitk DOT ernet DOT in
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

>>>>> coomar AT iitk DOT ernet DOT in (KS) writes:

KS> Hello!
KS>         I am having some problem with dmake 3.8 .
KS>         Consider the following lines ina makefile for eg:

KS>         libraries: config.h
KS>                 (cd sources; make)

KS> when I type  'make libraries', It takes the line (cd sources; make) as single
KS> line and hence gives 'BAD COMMAND OR FILENAME' message. I am running it on
KS> DOS 6.22. Same problem happens with gnu make 3.7.1 also. Any solutions?

First, the () are unnecessary, even on Unix.
Second, I don't think the MS-DOS CLI accepts more than one command on a
line.
Probably it will accept the commands on separate lines, as the working
directory is global in MS-DOS. this also means that you must do a cd ..
afterwards.

libaries:	config.h
	-cd sources
	make
	cd ..

The - is because on my system the cd command returned an error status.

An alternate hack is to use the command:
	cd sources | make
	cd ..

this works because the make command doesn't read its standard input. of
course the command it generates shouldn't read stdin  either.
-- 
Piet van Oostrum <piet AT cs DOT ruu DOT nl>
http://www.cs.ruu.nl/~piet

- Raw text -


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