michael@0: all: michael@0: # $(RM) defaults to -f michael@0: $(RM) nosuchfile michael@0: touch newfile michael@0: test -f newfile michael@0: $(RM) newfile michael@0: test ! -f newfile michael@0: mkdir newdir michael@0: test -d newdir michael@0: touch newdir/newfile michael@0: mkdir newdir/subdir michael@0: $(RM) -r newdir/subdir michael@0: test ! -d newdir/subdir michael@0: test -d newdir michael@0: mkdir newdir/subdir1 newdir/subdir2 michael@0: $(RM) -r newdir/subdir1 newdir/subdir2 michael@0: test ! -d newdir/subdir1 -a ! -d newdir/subdir2 michael@0: test -d newdir michael@0: $(RM) -r newdir michael@0: test ! -d newdir michael@0: @echo TEST-PASS