[comp.sys.ibm.pc] Turbo Make

benefiel@wyse.wyse.com (Daniel Benefiel xtmp user id dept234) (03/05/90)

I'm getting the error message "Unable to execute command: DEL XPATCH.EXE"
while running MAKE on the following (partial make file).  I have no
problem executing the DEL command myself from DOS (the file exists & has
rw attributes).  Any ideas on what MAKE's problem is?


XPATCH.COM:     XPATCH.OBJ MEM_IO.OBJ DISP_SEG.OBJ VIDEO_IO.OBJ CURSOR.OBJ \
  DISPATCH.OBJ KBD_IO.OBJ PHANTOM.OBJ EDITOR.OBJ
  LINK /M XPATCH MEM_IO DISP_SEG VIDEO_IO CURSOR DISPATCH KBD_IO PHANTOM EDITOR;
  EXE2BIN XPATCH XPATCH.COM
  DEL XPATCH.EXE

XPATCH.OBJ:     XPATCH.ASM
        tasm XPATCH,XPATCH,XPATCH;

MEM_IO.OBJ:     MEM_IO.ASM
        tasm MEM_IO,MEM_IO,MEM_IO;

(More compilation rules deleted)

Thanks in advance!
dan

bobmon@iuvax.cs.indiana.edu (RAMontante) (03/05/90)

benefiel@wyse.wyse.com (Daniel Benefiel xtmp user id dept234) <2624@wyse.wyse.com> :
-I'm getting the error message "Unable to execute command: DEL XPATCH.EXE"
-while running MAKE on the following (partial make file).  I have no

I just tried this on a dummy file:
	DEL XPATCH.EXE			got fatal error

	del XPATCH.EXE			worked fine.

I speculate that commands such as "EXE2BIN ..." succeed because they are
invoking programs that exist in your path.  "del" is a DOS internal
command. Perhaps make tries to handle internal commands specially, but
only recognizes lower case; and it wouldn't find any file named "del.exe"
(or .bat or .com) in your path --- normally such a program could never
be executed because DOS will do its internal command instead.

DOUG@YSUB.BITNET (Doug Sewell) (03/05/90)

In article <2624@wyse.wyse.com>, benefiel@wyse.wyse.com (Daniel Benefiel xtmp
user id dept234) says:
>
>I'm getting the error message "Unable to execute command: DEL XPATCH.EXE"
>while running MAKE on the following (partial make file).  I have no
>problem executing the DEL command myself from DOS (the file exists & has
>rw attributes).  Any ideas on what MAKE's problem is?
>
The book says 'del' should work.  It will invoke 'command.com' to run
the delete command, internally creating 'command /c del ......'

As far as not accepting 'DEL', perhaps that's the unix roots of
'make' coming through.  It doesn't make sense in a DOS world, though.

TLINK (as opposed to LINK) with the '/t' option will create a .com
file automatically, at least if you use TLINK that comes w/TC 2.0 and
TASM 1.0 (p. 223 in the Turbo Assembler reference manual).

Doug Sewell (DOUG@YSUB.BITNET/YSU.EDU), Tech Support, Computer Center,
Youngstown State University, Youngstown,  OH 44555
>> Snow is a four-letter word.