Hello all,
This may be slightly off topic so I apologise in advance if it is.
I am porting GNU make files from a platform I know very well (U**X) to one I
don't (Win32) and I am having problems with the lack of shell commands such
as for/do and xargs. On Unix I do something like:
clean:
-rm $(BASE_OBJS)
for APP in $(APP_OBJS) ; do \
rm $(APP); \
done;
On Win32 the first command seems to overflow the cmd.exe buffer and for the
latter I tried:
clean:
-@del $(BASE_OBJS)
FOR /F "delims= " %i IN (app_deps.txt) DO @del %i
but that doesn't work as I expected it to work. I know some of you must
maintain large build environments on the Win32 platform. What are the
"better" ways of writing clean rules? My next step is just to write a Perl
script and call that but it doesn't seem terribly clean.
Cheers,
Bryan
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make