59396ae067855fddba14a819c1b32e6747224cb1
[supertux.git] / mk / jam / clean.jam
1 #============================================================================
2 # Rules for cleaning build detritus.
3 #============================================================================
4
5 DELTREE ?= "rm -rf" ;
6
7 # CleanDir <tag> : <dir> ...
8 #   Forcibly delete a set of directories, even if they are not empty.
9 #   Tag is one of the standard targets used with the "Clean" rule, such as
10 #   "clean" or "distclean".
11 rule CleanDir
12 {
13   Always $(<) ;
14   NotFile $(<) ;
15   NoCare $(>) ;
16 }
17
18 actions piecemeal together existing CleanDir
19 {
20   $(DELTREE) $(>)
21 }