Fix:gui/qml:Makefile improved
authorakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 31 Mar 2010 10:57:17 +0000 (10:57 +0000)
committerakashihi <akashihi@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 31 Mar 2010 10:57:17 +0000 (10:57 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3107 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/gui/qml/Makefile.am

index 09b1d0a..af2a56c 100644 (file)
@@ -4,12 +4,10 @@ modulegui_LTLIBRARIES = libgui_qml.la
 libgui_qml_la_SOURCES = gui_qml.moc gui_qml.cpp proxy.moc proxy.h ngqpoint.moc ngqpoint.h
 libgui_qml_la_LDFLAGS = @QT_DECLARATIVE_LIBS@ @QT_GUI_LIBS@ -module -avoid-version
 BUILT_SOURCES = gui_qml.moc proxy.moc ngqpoint.moc
-gui_qml.moc: gui_qml.cpp
-       @MOC@ $(srcdir)/gui_qml.cpp >gui_qml.moc || touch gui_qml.moc
-proxy.moc: proxy.h
-       @MOC@ $(srcdir)/proxy.h >proxy.moc || touch proxy.moc
-ngqpoint.moc: ngqpoint.h
-       @MOC@ $(srcdir)/ngqpoint.h >ngqpoint.moc || touch ngqpoint.moc
+%.moc: %.h
+       @MOC@ $(srcdir)/$< > $@ || touch $@
+%.moc: %.cpp
+       @MOC@ $(srcdir)/$< > $@ || touch $@
 distclean-local:
        -$(RM) *.moc