summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Cristian Ionescu-Idbohrn <cristian.ionescu-idbohrn@axis.com>2013-10-06 13:56:15 +0200
committerGravatar Dirk Hohndel <dirk@hohndel.org>2013-10-06 11:20:04 -0700
commit159d0883bbc15fb71b44732965d44f49388fdbff (patch)
tree4c4b01404533cb6b5154c0b7388d46a1f9f7ab5d
parent9cbd0febbc60038d4ba140bf5ea66a74eb542c01 (diff)
downloadsubsurface-159d0883bbc15fb71b44732965d44f49388fdbff.tar.gz
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 <cristian.ionescu-idbohrn@axis.com> Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
-rw-r--r--Rules.mk8
1 files 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