[PATCH 19/19] Clean up the moc intermediates too in make clean

Thiago Macieira thiago at macieira.org
Mon Apr 22 23:48:25 PDT 2013


Signed-off-by: Thiago Macieira <thiago at macieira.org>
---
 Makefile | 2 +-
 Rules.mk | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 3e0af99..6ebba4d 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ VERSION=3.0.2
 CC=gcc
 CFLAGS=-Wall -Wno-pointer-sign -g $(CLCFLAGS) -DGSEAL_ENABLE
 CXX=g++
-CXXFLAGS=-Wall -g $(CLCFLAGS) -DQT_NO_KEYWORDS
+CXXFLAGS=-Wall -g $(CLCXXFLAGS) -DQT_NO_KEYWORDS
 INSTALL=install
 
 # these locations seem to work for SuSE and Fedora
diff --git a/Rules.mk b/Rules.mk
index d3c8c79..d5bc312 100644
--- a/Rules.mk
+++ b/Rules.mk
@@ -210,7 +210,7 @@ doc:
 
 clean:
 	rm -f $(ALL_OBJS) *~ $(NAME) $(NAME).exe po/*~ po/subsurface-new.pot \
-		$(VERSION_FILE) qt-ui/*.moc qt-ui/ui_*.h
+		$(VERSION_FILE) $(HEADERS_NEEDING_MOC:.h=.moc) *.moc qt-ui/*.moc qt-ui/ui_*.h
 	rm -f $(RESOURCES:.qrc=.qrc.cpp)
 	rm -rf share
 
-- 
1.7.11.7



More information about the subsurface mailing list