Makefile (clean): Have a variable for things to clean.
[preload-hacks] / Makefile
index 25e5d14..519270e 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.