Use moc-qt4 and uic-qt4
authorDmitriy Morozov <dmitriy@mrzv.org>
Fri, 01 Mar 2013 13:21:38 -0800
changeset 12 f7fd7f943fc8
parent 11 6895193402e6
child 13 4de1b8165ac9
Use moc-qt4 and uic-qt4
Makefile
--- a/Makefile	Tue Aug 30 09:51:14 2011 -0700
+++ b/Makefile	Fri Mar 01 13:21:38 2013 -0800
@@ -8,6 +8,9 @@
 LIBS += -lipecanvas -lipecairo -lipe $(QT_LIBS) $(CAIRO_LIBS)
 DESTDIR=/usr/bin
 
+MOC=moc-qt4
+UIC=uic-qt4
+
 OBJECTS = mainwindow.o moc_mainwindow.o canvasview.o moc_canvasview.o \
 		  timelabel.o moc_timelabel.o 
 
@@ -16,7 +19,7 @@
 all: ipepresenter
 
 moc_%.cpp: %.h
-	moc -o $@ $<
+	$(MOC) -o $@ $<
 
 # %.o: %.cpp
 #     g++ $< -c $(CPPFLAGS)
@@ -25,7 +28,7 @@
 #     g++ $< -c $(CPPFLAGS)
 
 ui_%.h: %.ui
-	uic $< > $@
+	$(UIC) $< > $@
 
 mainwindow.o: mainwindow.cpp ui_mainwindow.h
 	g++ $< -c $(CPPFLAGS)