summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Thiago Macieira <thiago@macieira.org>2013-04-14 00:30:25 -0700
committerGravatar Thiago Macieira <thiago@macieira.org>2013-04-23 00:06:41 -0700
commitb073823e3acbeb4b15c95101e9708d60cc7b2703 (patch)
treef10198dc889750be3b07b34ad9a97d950d543f2d
parentd312b7d6fd40c961c1922f670388cdd8a4b92e77 (diff)
downloadsubsurface-b073823e3acbeb4b15c95101e9708d60cc7b2703.tar.gz
Clean up the moc intermediates too in make clean
Signed-off-by: Thiago Macieira <thiago@macieira.org>
-rw-r--r--Makefile2
-rw-r--r--Rules.mk2
2 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3e0af9993..6ebba4dd5 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 d3c8c79a8..d5bc31246 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