]> git.lyx.org Git - features.git/blob - src/frontends/qt2/ui/Makefile.am
make sure to dist pch.h and mark PCH_FILE as a built file
[features.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 *Module.h *Dialog.h
5
6 SUBDIRS = . moc
7
8 EXTRA_DIST = pch.h QPreambleDialogBase.ui $(UIFILES)
9
10 BUILT_SOURCES = $(PCH_FILE)
11
12 AM_CPPFLAGS += \
13         $(QT_CPPFLAGS) -DQT_NO_TRANSLATION \
14         $(PCH_FLAGS) \
15         -I$(top_srcdir)/src \
16         -I$(top_srcdir)/src/frontends \
17         -I$(top_srcdir)/src/frontends/qt2 \
18         $(QT_INCLUDES) $(BOOST_INCLUDES) \
19         -I$(top_srcdir)/src/frontends/controllers
20
21 noinst_LTLIBRARIES = libqt2ui.la
22
23 nodist_libqt2ui_la_SOURCES = $(UIFILES:.ui=.h) $(UIFILES:.ui=.C)
24 # The trick.
25 libqt2ui_la_LINK = touch libqt2ui.la ; echo
26
27 # Use _() for localization instead of tr() or trUtf8()
28 UICFLAGS=-tr qt_
29
30 %.h: %.ui
31         $(UIC) $(UICFLAGS) $< -o $@
32 %.C: %.h %.ui $(PCH_FILE)
33         $(UIC) $(UICFLAGS) -impl `echo $^ | sed 's/[^ ]*pch.h.gch//'` -o $@