Message-Id: Comments: Authenticated sender is From: "Salvador Eduardo Tropea (SET)" Organization: INTI To: djgpp-workers AT delorie DOT com Date: Mon, 22 Feb 1999 15:18:43 +0000 MIME-Version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Subject: Bug in make? X-mailer: Pegasus Mail for Windows (v2.54) Reply-To: djgpp-workers AT delorie DOT com Hi all! I don't use make too much but as people uses it I'm giving the option to compile my editor with make, but I found the following problem, and I think that's a bug: Suppose I have: ------------- m1.mak pepe.c: make -f m2.mak -------------------- ------------- m2.mak pepe.c: $(MAKE) -f m3.mak -------------------- ------------- m3.mak pepe.c: cp delete.me pepe.c -------------------- Now with delete.me in this directory if I execute "make -f m1.mak" I get: -------------------- make -f m2.mak make.exe[1]: Entering directory `c:/980127/new/new/9901/mail/pp' E:\DJ\BIN/make.exe -f m3.mak make.exe[1]: *** [pepe.c] Error -1 make.exe[1]: Leaving directory `c:/980127/new/new/9901/mail/pp' make.exe: *** [pepe.c] Error 2 -------------------- Now lets fix it using: ------------- m1.mak pepe.c: $(MAKE) -f m2.mak -------------------- And then I get: -------------------- e:/dj/bin/make.exe -f m2.mak make.exe[1]: Entering directory `c:/980127/new/new/9901/mail/pp' e:/dj/bin/make.exe -f m3.mak make.exe[2]: Entering directory `c:/980127/new/new/9901/mail/pp' cp delete.me pepe.c make.exe[2]: Leaving directory `c:/980127/new/new/9901/mail/pp' make.exe[1]: Leaving directory `c:/980127/new/new/9901/mail/pp' -------------------- Even when the solution is just be coherent and use $(MAKE) in all the places: 1) It works in Linux. 2) I don't see why "E:\DJ\BIN/make.exe -f m3.mak" should fail. 3) The variable should be expanded with forward slashes. SET ------------------------------------ 0 -------------------------------- Visit my home page: http://welcome.to/SetSoft or http://www.geocities.com/SiliconValley/Vista/6552/ Salvador Eduardo Tropea (SET). (Electronics Engineer) Alternative e-mail: set-soft AT usa DOT net set AT computer DOT org ICQ: 2951574 Address: Curapaligue 2124, Caseros, 3 de Febrero Buenos Aires, (1678), ARGENTINA TE: +(5411) 4759 0013