makefile: Make the 'clean' target conform to standard practice.

This patch makes the build system less surprising by removing the
executable binaries in the 'clean' target.  This behavior is more in
line with the GNU makefile guidelines.

Signed-off-by: Richard Cochran <richardcochran@gmail.com>
Suggested-by: Manuel Traut <manut@linutronix.de>
master
Richard Cochran 2016-12-06 19:48:39 +01:00
parent 4e8dbd8492
commit 356eb81d4d
1 changed files with 1 additions and 2 deletions

View File

@ -74,10 +74,9 @@ install: $(PRG)
install -p -m 644 -t $(DESTDIR)$(man8dir) $(PRG:%=%.8)
clean:
rm -f $(OBJECTS) $(DEPEND)
rm -f $(OBJECTS) $(DEPEND) $(PRG)
distclean: clean
rm -f $(PRG)
rm -f .version
# Implicit rule to generate a C source file's dependencies.