makefile: Declare clean target as phony.

This ensures that make clean always proceeds, even if the user
accidentally creates a file named 'clean'. Also, it ignores errors in
rm and other commands.

Signed-off-by: Jan Janak <jan@ryngle.com>
This commit is contained in:
Jan Janak 2009-11-22 13:55:35 +01:00 committed by Carl Worth
parent 8aa339ac77
commit 685a8ad23b

View file

@ -75,5 +75,6 @@ DEPS := $(SRCS:%.c=.deps/%.d)
DEPS := $(DEPS:%.cc=.deps/%.d)
-include $(DEPS)
.PHONY : clean
clean:
rm -f $(CLEAN); rm -rf .deps