]> git.lyx.org Git - lyx.git/blob - src/frontends/qt2/ui/Makefile.am
Rough and ready, make the prefs dialog widget stack work. So you can
[lyx.git] / src / frontends / qt2 / ui / Makefile.am
1 include $(top_srcdir)/config/common.am
2
3 noinst_LTLIBRARIES = libqt2ui.la
4
5 INCLUDES = -I$(top_srcdir)/src -I$(top_srcdir)/src/frontends \
6         -I$(top_srcdir)/src/frontends/qt2 \
7         $(FRONTEND_INCLUDES) $(BOOST_INCLUDES) \
8         -I$(top_srcdir)/src/frontends/controllers
9
10 AM_CXXFLAGS = -DQT_CLEAN_NAMESPACE -DQT_GENUINE_STR
11
12
13 SUBDIRS = . moc
14
15 include $(srcdir)/../Makefile.dialogs
16
17 DISTCLEANFILES += $(UIDIALOGS)
18
19 nodist_libqt2ui_la_SOURCES = $(UIDIALOGS)
20
21 libqt2ui.la: $(libqt2ui_la_OBJECTS) $(libqt2ui_la_DEPENDENCIES)
22
23 # a pattern to change tr() to _()
24
25 SED = sed
26 SEDREPLACETR = s,[^A-Za-z]tr[ ]*(,_(,g
27 SEDREMOVEEMPTY = s,_[ ]*([ ]*""[ ]*),"",g
28
29 QAskForTextDialog.h: QAskForTextDialog.ui
30         $(UIC) $< -o $@
31 QAskForTextDialog.C: QAskForTextDialog.h QAskForTextDialog.ui
32         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
33
34 ClassModuleBase.h: ClassModuleBase.ui
35         $(UIC) $< -o $@
36 ClassModuleBase.C: ClassModuleBase.h ClassModuleBase.ui
37         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
38
39 BulletsModuleBase.h: BulletsModuleBase.ui
40         $(UIC) $< -o $@
41 BulletsModuleBase.C: BulletsModuleBase.h BulletsModuleBase.ui
42         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
43
44 PackagesModuleBase.h: PackagesModuleBase.ui
45         $(UIC) $< -o $@
46 PackagesModuleBase.C: PackagesModuleBase.h PackagesModuleBase.ui
47         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
48
49 PaperModuleBase.h: PaperModuleBase.ui
50         $(UIC) $< -o $@
51 PaperModuleBase.C: PaperModuleBase.h PaperModuleBase.ui
52         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
53
54 MarginsModuleBase.h: MarginsModuleBase.ui
55         $(UIC) $< -o $@
56 MarginsModuleBase.C: MarginsModuleBase.h MarginsModuleBase.ui
57         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
58
59 LanguageModuleBase.h: LanguageModuleBase.ui
60         $(UIC) $< -o $@
61 LanguageModuleBase.C: LanguageModuleBase.h LanguageModuleBase.ui
62         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
63
64 NumberingModuleBase.h: NumberingModuleBase.ui
65         $(UIC) $< -o $@
66 NumberingModuleBase.C: NumberingModuleBase.h NumberingModuleBase.ui
67         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
68
69 BiblioModuleBase.h: BiblioModuleBase.ui
70         $(UIC) $< -o $@
71 BiblioModuleBase.C: BiblioModuleBase.h BiblioModuleBase.ui
72         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
73
74 PreambleModuleBase.h: PreambleModuleBase.ui
75         $(UIC) $< -o $@
76 PreambleModuleBase.C: PreambleModuleBase.h PreambleModuleBase.ui
77         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
78
79
80 %Module.h: %Module.ui
81         $(UIC) $< -o $@
82 %Module.C: %Module.h %Module.ui
83         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@
84
85 %Base.h: %.ui
86         $(UIC) $< -o $@
87 %Base.C: %Base.h %.ui
88         $(UIC) -impl $^ | $(SED) '$(SEDREPLACETR);$(SEDREMOVEEMPTY)' > $@