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>
This commit is contained in:
Cristian Ionescu-Idbohrn 2013-10-06 13:56:15 +02:00 committed by Dirk Hohndel
parent 9cbd0febbc
commit 159d0883bb

View file

@ -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