1 # subdirmk - useful rules for clean target
2 # Copyright 2019 Mark Wooding
3 # Copyright 2019 Ian Jackson
4 # SPDX-License-Identifier: LGPL-2.0-or-later
7 &# &:include subdirmk/clean.sd.mk
8 &# (probably in Suffix.sd.mk)
10 &# Provides a per-directory `clean' target, which deletes all the files
11 &# in &CLEAN. &OBJECTS, &DEPFILES and &TARGETS are automatically deleted.
13 &# If you want to delete a directory, extend the target with
15 &# $(RM) -r somethingn
16 &# ($(RM) conventionally contains `-f'.)
18 &CLEAN += & *~ .*~ *.tmp