help-make
[Top][All Lists]
Advanced

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

Re: delete large list of files


From: Raleigh Rinehart
Subject: Re: delete large list of files
Date: Mon, 04 Apr 2011 14:45:14 -0500
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.15) Gecko/20110303 Lightning/1.0b2 Thunderbird/3.1.9


# $(call rm-cmd,FILE_LIST,Chunk Size,rm options)
rm-cmd=$(strip $(eval __a :=)$(foreach w,$1,$(if $(filter $2,$(words
$(__a))),$(shell $(RM) $3 $(strip $(__a)) )$(eval __a:=))$(eval __a
+=$w))$(shell $(RM) $3 $(__a))
What is the value of "RM"?

Sorry, I should have included that in the original e-mail.

rm is defined as:

GNUTOOLS := c:\progra~1\GnuWin32
RM    := $(GNUTOOLS)\bin\rm.exe -f

Also, I should note that invoking rm directly in a recipe does work.
e.g. (V is either empty or @, OS_TYPE is win32 in this case)
        $V$(RM) -r ./output/$(OS_TYPE)/





reply via email to

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