🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.os.msdos.programmer
Article #2096

Changing directories in a makefile using NDMAKE

#2096
From: A1 ted kapela (staff)
Date: Thu, 06 Sep 1990 21:53
30 lines
2245 bytes
I just tried to use NDMAKE to create the PCCURSES library.  (I know that
there is a make utility included, but my question is about NDMAKE).
In the makefile, several subdirectories are created (one for each model).
The makefile then changes the current working directory to one of these
subdirectories, and calls make -f ..\makefile.msc.  My problem is that
NDMAKE executes all DOS commands in separate subshells.  Therefore, 
the directory for the current shell is never changed, since the directory
is restored once the CD command (and the associated COMMAND.COM) is finished.

I read the docs and tried using parenthesis to execute the whole
group of rules in the same shell, but apparantly NDMAKE just passes
the whole block (Parenthesis and all) to COMMAND.COM for processing, instead
of creating a batch file as it is supposed to.  As you know, COMMAND 
does not support this *nix style syntax.  I then tried to use
MS-Shell.  That works, except that NDMAKE explicitly uses the \ character
in the directory path for its temp files.  MS-Shell chokes on this, thinking
it should quote the next character.

I tried everything I could think of, but I ran out of ideas and decided
to ask for the net's help.  I couldn't find anything in the docs to 
help, but if it is there, please point me in a direction.

Otherwise, has anybody else tried this?  Have they gotten it to work?
I would appreciate any help you could give me.  Thanx in advantz.

-- 
...............................................................................
:   Theodore S. Kapela                 :  ted@polyof.poly.edu                 :
:   (516) 755-4299 [Voice, Days]       :  "Another brilliant mind             :
:   (516) 473-7746 [FAX]               :     corrupted by education"          : ...............................................................................
Technical Details
Message-ID: <1990Sep6.215337.3798@polyof.poly.edu>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!polyof!ted

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!yale!cmcl2!polyof!ted
From: ted@polyof.poly.edu (A1 ted kapela (staff) )
Newsgroups: comp.os.msdos.programmer
Subject: Changing directories in a makefile using NDMAKE
Message-ID: <1990Sep6.215337.3798@polyof.poly.edu>
Date: 6 Sep 90 21:53:37 GMT
Organization: Polytechnic University
Lines: 30