]> git.lyx.org Git - features.git/blob - src/frontends/kde/Makefile.am
The KDE monster patch from John
[features.git] / src / frontends / kde / Makefile.am
1 AUTOMAKE_OPTIONS = foreign 1.4
2 MAINTAINERCLEANFILES = $(srcdir)/Makefile.in
3 noinst_LTLIBRARIES = libkde.la
4 BOOST_INCLUDES = -I$(top_srcdir)/boost
5 INCLUDES = -I${top_srcdir}/src/ -I${top_srcdir}/src/frontends/ \
6         ${SIGC_CFLAGS} ${FRONTEND_INCLUDES} $(BOOST_INCLUDES) \
7         -I${top_srcdir}/src/frontends/xforms
8
9 # just to make sure, automake makes them 
10 BUILTSOURCES =  citationdlg_moc.C \
11                 copyrightdlg_moc.C \
12                 copyrightdlgdata_moc.C \
13                 indexdlg_moc.C \
14                 indexdlgdata_moc.C \
15                 paradlg_moc.C \
16                 parageneraldlg_moc.C \
17                 parageneraldlgdata_moc.C \
18                 paraextradlg_moc.C \
19                 paraextradlgdata_moc.C \
20                 printdlg_moc.C \
21                 printdlgdata_moc.C \
22                 refdlg_moc.C \
23                 tocdlg_moc.C \
24                 urldlg_moc.C
25
26 # generated by qtarch
27
28 GENSOURCES =    copyrightdlgdata.C \
29                 copyrightdlgdata.h \
30                 indexdlgdata.C \
31                 indexdlgdata.h \
32                 parageneraldlgdata.C \
33                 parageneraldlgdata.h \
34                 paraextradlgdata.C \
35                 paraextradlgdata.h \
36                 printdlgdata.C \
37                 printdlgdata.h
38
39 DISTCLEANFILES = $(BUILTSOURCES) *.orig *.rej *~ *.bak core
40
41 libkde_la_OBJADD = \
42         ../xforms/FormBase.lo \
43         ../xforms/FormDocument.lo \
44         ../xforms/form_document.lo \
45         ../xforms/FormError.lo \
46         ../xforms/form_error.lo \
47         ../xforms/FormGraphics.lo \
48         ../xforms/form_graphics.lo \
49         ../xforms/FormInset.lo \
50         ../xforms/FormPreferences.lo \
51         ../xforms/form_preferences.lo \
52         ../xforms/FormTabular.lo \
53         ../xforms/form_tabular.lo \
54         ../xforms/input_validators.lo \
55         ../xforms/RadioButtonGroup.lo \
56         ../xforms/Toolbar_pimpl.lo \
57         ../xforms/Menubar_pimpl.lo
58
59 LIBS=
60 LDFLAGS= $(libkde_la_OBJADD)
61 LYXDATADIRS = dlg
62 ETAGS_ARGS = --lang=c++
63 libkde_la_SOURCES = \
64         Dialogs.C \
65         GUIRunTime.C \
66         QtLyXView.h \
67         FormCitation.C \
68         FormCitation.h \
69         FormCopyright.C \
70         FormCopyright.h \
71         FormIndex.C \
72         FormIndex.h \
73         FormParagraph.C \
74         FormParagraph.h \
75         FormPrint.C \
76         FormPrint.h \
77         FormRef.C \
78         FormRef.h \
79         FormToc.C \
80         FormToc.h \
81         FormUrl.C \
82         FormUrl.h \
83         citationdlg.C \
84         citationdlg.h \
85         copyrightdlg.C \
86         copyrightdlg.h \
87         indexdlg.C \
88         indexdlg.h \
89         paradlg.C \
90         paradlg.h \
91         parageneraldlg.C \
92         parageneraldlg.h \
93         paraextradlg.C \
94         paraextradlg.h \
95         printdlg.C \
96         printdlg.h \
97         refdlg.C \
98         refdlg.h \
99         tocdlg.C \
100         tocdlg.h \
101         urldlg.C \
102         urldlg.h \
103         $(GENSOURCES) \
104         $(BUILTSOURCES)
105
106 # These still have to be added. Sooner or later. ARRae-20000129
107 #       GUI_defaults.C \
108 #       GUI_initialize.C \
109 #       GUI_postlyxrc.C \
110 #       GUI_runtime.C \
111 #       GUI_applymenu.C
112
113 # just copied from old lyx repository
114 dist-hook:
115         for subdir in $(LYXDATADIRS) ; do \
116         test -d $(distdir)/$$subdir \
117         || mkdir $(distdir)/$$subdir \
118         || exit 1; \
119         chmod 777 $(distdir)/$$subdir; \
120         list=`(cd $(srcdir)/$$subdir && ls -1 | grep -v CVS)`; \
121         echo $$list ; \
122         for fil in $$list ; do \
123         cp -p $(srcdir)/$$subdir/$$fil $(distdir)/$$subdir ; \
124         done ; \
125         done
126
127 # dialog file dependencies
128
129 copyrightdlgdata.C copyrightdlgdata.h: dlg/copyright.dlg
130         $(QTARCH) -g dlg/copyright.dlg
131 indexdlgdata.C indexdlgdata.h: dlg/index.dlg
132         $(QTARCH) -g dlg/index.dlg
133 printdlgdata.C printdlgdata.h: dlg/print.dlg
134         $(QTARCH) -g dlg/print.dlg
135 parageneraldlgdata.C parageneraldlgdata.h: dlg/parageneral.dlg
136         $(QTARCH) -g dlg/parageneral.dlg
137 paraextradlgdata.C paraextradlgdata.h: dlg/paraextra.dlg
138         $(QTARCH) -g dlg/paraextra.dlg
139
140 dlgdata: $(GENSOURCES) 
141
142 # add a dependency for every moc file to be full portable
143 # I've added a key binding to emacs for this. 
144
145 citationdlg.C: citationdlg_moc.C
146 citationdlg_moc.C: citationdlg.h
147         $(MOC) citationdlg.h -o citationdlg_moc.C
148
149 copyrightdlg.C: copyrightdlg_moc.C
150 copyrightdlg_moc.C: copyrightdlg.h
151         $(MOC) copyrightdlg.h -o copyrightdlg_moc.C
152 copyrightdlgdata_moc.C: copyrightdlgdata.h
153         $(MOC) copyrightdlgdata.h -o copyrightdlgdata_moc.C
154
155 indexdlg.C: indexdlg_moc.C
156 indexdlg_moc.C: indexdlg.h
157         $(MOC) indexdlg.h -o indexdlg_moc.C
158 indexdlgdata_moc.C: indexdlgdata.h
159         $(MOC) indexdlgdata.h -o indexdlgdata_moc.C
160
161 paradlg.C: paradlg_moc.C
162 paradlg_moc.C: paradlg.h
163         $(MOC) paradlg.h -o paradlg_moc.C
164
165 parageneraldlg.C: parageneraldlg_moc.C
166 parageneraldlg_moc.C: parageneraldlg.h
167         $(MOC) parageneraldlg.h -o parageneraldlg_moc.C
168 parageneraldlgdata_moc.C: parageneraldlgdata.h
169         $(MOC) parageneraldlgdata.h -o parageneraldlgdata_moc.C
170  
171 paraextradlg.C: paraextradlg_moc.C
172 paraextradlg_moc.C: paraextradlg.h
173         $(MOC) paraextradlg.h -o paraextradlg_moc.C
174 paraextradlgdata_moc.C: paraextradlgdata.h
175         $(MOC) paraextradlgdata.h -o paraextradlgdata_moc.C
176  
177 printdlg.C: printdlg_moc.C
178 printdlg_moc.C: printdlg.h
179         $(MOC) printdlg.h -o printdlg_moc.C
180 printdlgdata_moc.C: printdlgdata.h
181         $(MOC) printdlgdata.h -o printdlgdata_moc.C
182
183 refdlg.C: refdlg_moc.C
184 refdlg_moc.C: refdlg.h
185         $(MOC) refdlg.h -o refdlg_moc.C
186
187 tocdlg.C: tocdlg_moc.C
188 tocdlg_moc.C: tocdlg.h
189         $(MOC) tocdlg.h -o tocdlg_moc.C
190  
191 urldlg.C: urldlg_moc.C
192 urldlg_moc.C: urldlg.h
193         $(MOC) urldlg.h -o urldlg_moc.C