From 159d0883bbc15fb71b44732965d44f49388fdbff Mon Sep 17 00:00:00 2001 From: Cristian Ionescu-Idbohrn Date: Sun, 6 Oct 2013 13:56:15 +0200 Subject: Better clean. Removing both $(HEADERS_NEEDING_MOC:.h=.moc) and qt-ui/*.moc was a duplication, as all files refered in $(HEADERS_NEEDING_MOC) are located in directory qt-ui/. Generated header files qt-ui/ui_*.h were not removed. Avoid forking `rm' multiple times and regroup file list in a more intuitive order. Signed-off-by: Cristian Ionescu-Idbohrn Signed-off-by: Dirk Hohndel --- Rules.mk | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Rules.mk b/Rules.mk index 7f30a84dd..c634ed033 100644 --- a/Rules.mk +++ b/Rules.mk @@ -249,9 +249,11 @@ doc: $(MAKE) -C Documentation doc clean: - rm -f $(ALL_OBJS) *~ $(NAME) $(NAME).exe po/*~ po/$(NAME)-new.pot \ - $(VERSION_FILE) $(HEADERS_NEEDING_MOC:.h=.moc) *.moc qt-ui/*.moc .uic/*.h - rm -f $(RESOURCES:.qrc=.qrc.cpp) + rm -f $(ALL_OBJS) *~ $(NAME) $(VERSION_FILE) \ + $(NAME).exe po/*~ po/$(NAME)-new.pot \ + *.moc qt-ui/*.moc \ + $(UIC_HEADERS:%=qt-ui/%) .uic/*.h \ + $(RESOURCES:.qrc=.qrc.cpp) rm -rf share confclean: clean -- cgit v1.2.3-70-g09d2