]> git.lyx.org Git - lyx.git/blob - src/frontends/qt4/ui/Makefile.am
Compilation Fix: Appended "Ui" to main objectName so that it is the same as the ui...
[lyx.git] / src / frontends / qt4 / ui / Makefile.am
1 include $(top_srcdir)/config/common.am
2 include $(srcdir)/../Makefile.dialogs
3
4 CLEANFILES += *.C *Base.h *Module.h *Dialog.h
5
6 SUBDIRS = .
7
8 EXTRA_DIST = pch.h $(UIFILES)
9
10 BUILT_SOURCES = $(PCH_FILE) $(UIFILES:.ui=.h)
11
12 AM_CPPFLAGS += \
13         $(QT4_CPPFLAGS) -DQT_NO_TRANSLATION \
14         $(PCH_FLAGS) \
15         -I$(top_srcdir)/src \
16         -I$(top_srcdir)/src/frontends \
17         -I$(top_srcdir)/src/frontends/qt4 \
18         $(QT4_INCLUDES) $(BOOST_INCLUDES) \
19         -I$(top_srcdir)/src/frontends/controllers
20
21 noinst_LTLIBRARIES = libqt4ui.la
22
23 nodist_libqt4ui_la_SOURCES = $(UIFILES:.ui=.h)
24 # The trick.
25 libqt4ui_la_LINK = touch libqt4ui.la ; echo
26
27 # Use _() for localization instead of tr() or trUtf8()
28 UICFLAGS=-tr qt_
29
30 %.h: %.ui
31         $(UIC4) $(UIC4FLAGS) $< -o $@