Mail Archives: djgpp/1995/09/30/13:49:15
Hi,
I'm using the DJGPP v2 beta 3 Make utility (version 3.73) and bumped into
a very annoying problem.
I want to call make recursively for a set of subdirectories, using the FOR
command in 4DOS5.51, like this:
SUBDIRS = dir1 dir2
do_subdirs:
FOR %i in ($(SUBDIRS)) do $(MAKE) -C %i
Make will go nicely through the subdirectories and make the files there. But
it seems that the DJ100000.BAT file in my temp directory gets overwritten in
the process! So, after make leaves the last subdirectory I get a 'Missing
batchfile' error from 4DOS and make terminates.
Seems like a bug to me. Or is there a smarter substitute for the 4DOS FOR
statement? Something built in?
Thanks in advance. Keep up the good work!
Jussi
+----------------------------------------------------------------------------+
| jussi DOT moisio AT cc DOT tut DOT fi http://www.modeemi.cs.tut.fi/~jayjay JayJay/Prime |
+----------------------------------------------------------------------------+
"And hooptiously drangle me with crinkly bindlewurdles,/ Or I will rend thee
in the gobberwarts with my blurglecruncheon, see if I don't!" - Vogon poetry
- Raw text -