]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/ui/Makefile.am
fix typo
[lyx.git] / src / frontends / qt2 / ui / Makefile.am
1 include $(top_srcdir)/config/common.am
2 include $(srcdir)/../Makefile.dialogs
3
4 CLEANFILES += *.C *Base.h
5
6 SUBDIRS = . moc
7
8 EXTRA_DIST = QPreambleDialogBase.ui $(UIFILES)
9
10 AM_CPPFLAGS = \
11         -DQT_CLEAN_NAMESPACE \
12         -DQT_GENUINE_STR \
13         -DQT_NO_TRANSLATION \
14         -I$(top_srcdir)/src \
15         -I$(top_srcdir)/src/frontends \
16         -I$(top_srcdir)/src/frontends/qt2 \
17         $(QT_INCLUDES) $(BOOST_INCLUDES) \
18         -I$(top_srcdir)/src/frontends/controllers
19
20 AM_CXXFLAGS = $(PCH_FLAGS)
21
22 noinst_LTLIBRARIES = libqt2ui.la
23
24 nodist_libqt2ui_la_SOURCES = $(UIFILES:.ui=.h) $(UIFILES:.ui=.C)
25 # The trick.
26 libqt2ui_la_LINK = touch libqt2ui.la
27
28 # Use _() for localization instead of tr() or trUtf8()
29 UICFLAGS=-tr qt_
30
31 %.h: %.ui
32         $(UIC) $(UICFLAGS) $< -o $@
33 %.C: %.h %.ui $(PCH_FILE)
34         $(UIC) $(UICFLAGS) -impl `echo $^ | sed 's/pch.h.gch//'` -o $@