[comp.sys.ibm.pc.programmer] Borland's Make utility

ferris@gradient.cis.upenn.edu (Richard T. Ferris) (05/18/91)

I have written a simple make file in Unix which doesn't seem to
be writeable using the Borland DOS make utility.  Here is a simple
modified file lister makefile which works under Unix:

FILES = x y z 

list: $(FILES)
     ls $?
     touch list

The problem seems to be that there is no $? macro variable in the
Borland make.  Is this right?  I know I could do this by having a
seperate rule for each file but I am trying to be a bit more general.

Thanks for the help.
--RF
Richard Ferris
ferris@grad1.cis.upenn.edu

resnicks@netcom.COM (Steve Resnick) (05/21/91)

In article <43468@netnews.upenn.edu> ferris@gradient.cis.upenn.edu (Richard T. Ferris) writes:
>I have written a simple make file in Unix which doesn't seem to
>be writeable using the Borland DOS make utility.  Here is a simple
>modified file lister makefile which works under Unix:
>
>FILES = x y z 
>
>list: $(FILES)
>     ls $?
>     touch list
>
>The problem seems to be that there is no $? macro variable in the
>Borland make.  Is this right?  I know I could do this by having a
>seperate rule for each file but I am trying to be a bit more general.
>

The Turbo Make equivelant is $< . Turbo Make is not UNIX compatible. If
you want a UNIX compatible make, try NDMAKE. 

Cheers!
Steve


-- 
-------------------------------------------------------------------------------
        resnicks@netcom.com, steve@camphq, IFNA:        1:143/105.0, 
                 co moderator for comp.binaries.os2
 Real life: Steve Resnick. Chief Software Architect, Process Scientific, Inc
 Flames, grammar and spelling errors >/dev/null
 The Asylum OS/2 BBS - (408)263-8017 12/2400,8,1 - Running Maximus CBCS 1.2
-------------------------------------------------------------------------------