From: Mark Wooding Date: Wed, 6 Jun 2018 20:52:50 +0000 (+0100) Subject: Makefile (clean): Have a variable for things to clean. X-Git-Tag: 1.2.0~14 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~mdw/git/preload-hacks/commitdiff_plain/c71a0b566ce55e2f58f06c8a524de66ac4ba6848 Makefile (clean): Have a variable for things to clean. --- diff --git a/Makefile b/Makefile index 25e5d14..519270e 100644 --- a/Makefile +++ b/Makefile @@ -141,8 +141,10 @@ DISTFILES += $(patsubst %, debian/%.lintian-overrides, \ all: $(TARGETS) .PHONY: ALL +CLEAN += $(TARGETS) +CLEAN += *.o clean: - rm -f *.o $(TARGETS) + rm -f $(CLEAN) .PHONY: clean ## Building sources.