help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Advice on "clean:" rule for Win32 platform needed...


From: Miller, Bryan
Subject: Advice on "clean:" rule for Win32 platform needed...
Date: Fri, 29 Mar 2002 12:22:42 -0800

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:
        address@hidden $(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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]