chiark / gitweb /
Makefile (clean): Have a variable for things to clean.
[preload-hacks] / Makefile
index 25e5d14604234e99087940c3128e15186183a7dc..519270ee78365b73eeab1313c781b200826e2fbb 100644 (file)
--- 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.