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
5 # There is NO WARRANTY.
8 &# &:include subdirmk/clean.sd.mk
9 &# (probably in Suffix.sd.mk)
11 &# Provides a per-directory `clean' target, which deletes all the files
12 &# in &CLEAN. &OBJECTS, &DEPFILES and &TARGETS are automatically deleted.
14 &# If you want to delete a directory, extend the target with
16 &# $(RM) -r somethingn
17 &# ($(RM) conventionally contains `-f'.)
19 &CLEAN += & *~ .*~ *.tmp