]> git.lyx.org Git - features.git/blob - src/frontends/qt2/ui/moc/Makefile.am
improve link trick and remove some duplicates
[features.git] / src / frontends / qt2 / ui / moc / Makefile.am
1 include $(top_srcdir)/config/common.am
2 include $(srcdir)/../../Makefile.dialogs
3
4 DISTCLEANFILES += $(UIFILES:.ui=_moc.C)
5
6 AM_CPPFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR -DQT_NO_TRANSLATION \
7         $(PCH_FLAGS) \
8         -I$(top_srcdir)/src \
9         -I$(top_srcdir)/src/frontends \
10         -I$(top_srcdir)/src/frontends/controllers \
11         $(QT_INCLUDES) \
12         $(BOOST_INCLUDES)
13
14 noinst_LTLIBRARIES = libqt2uimoc.la
15
16 nodist_libqt2uimoc_la_SOURCES = $(UIFILES:.ui=_moc.C)
17 # The trick.
18 libqt2uimoc_la_LINK = touch libqt2uimoc.la ; echo
19
20 %_moc.C: ../%.h
21         $(MOC) -o $@ $<