blob: 6c7140e39dbf300d5e904078ec4fe5664de181be (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
all:
# $(RM) defaults to -f
$(RM) nosuchfile
touch newfile
test -f newfile
$(RM) newfile
test ! -f newfile
mkdir newdir
test -d newdir
touch newdir/newfile
mkdir newdir/subdir
$(RM) -r newdir/subdir
test ! -d newdir/subdir
test -d newdir
mkdir newdir/subdir1 newdir/subdir2
$(RM) -r newdir/subdir1 newdir/subdir2
test ! -d newdir/subdir1 -a ! -d newdir/subdir2
test -d newdir
$(RM) -r newdir
test ! -d newdir
@echo TEST-PASS
|