Merge remote-tracking branch 'origin/master' into sheet
[pspp] / src / ui / gui / automake.mk
1 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
2
3 UI_FILES = \
4         src/ui/gui/aggregate.ui \
5         src/ui/gui/autorecode.ui \
6         src/ui/gui/binomial.ui \
7         src/ui/gui/compute.ui \
8         src/ui/gui/barchart.ui \
9         src/ui/gui/correlation.ui \
10         src/ui/gui/count.ui \
11         src/ui/gui/comments.ui \
12         src/ui/gui/crosstabs.ui \
13         src/ui/gui/chi-square.ui \
14         src/ui/gui/data-sheet.ui \
15         src/ui/gui/descriptives.ui \
16         src/ui/gui/entry-dialog.ui \
17         src/ui/gui/examine.ui \
18         src/ui/gui/goto-case.ui \
19         src/ui/gui/factor.ui \
20         src/ui/gui/find.ui \
21         src/ui/gui/frequencies.ui \
22         src/ui/gui/histogram.ui \
23         src/ui/gui/indep-samples.ui \
24         src/ui/gui/k-means.ui \
25         src/ui/gui/k-related.ui \
26         src/ui/gui/ks-one-sample.ui \
27         src/ui/gui/logistic.ui \
28         src/ui/gui/means.ui \
29         src/ui/gui/missing-val-dialog.ui \
30         src/ui/gui/oneway.ui \
31         src/ui/gui/paired-samples.ui \
32         src/ui/gui/rank.ui \
33         src/ui/gui/runs.ui \
34         src/ui/gui/sort.ui \
35         src/ui/gui/split-file.ui \
36         src/ui/gui/recode.ui \
37         src/ui/gui/regression.ui \
38         src/ui/gui/reliability.ui \
39         src/ui/gui/roc.ui \
40         src/ui/gui/scatterplot.ui \
41         src/ui/gui/select-cases.ui \
42         src/ui/gui/t-test.ui \
43         src/ui/gui/text-data-import.ui \
44         src/ui/gui/transpose.ui \
45         src/ui/gui/univariate.ui \
46         src/ui/gui/val-labs-dialog.ui \
47         src/ui/gui/variable-info.ui \
48         src/ui/gui/data-editor.ui \
49         src/ui/gui/output-window.ui \
50         src/ui/gui/syntax-editor.ui \
51         src/ui/gui/var-sheet.ui \
52         src/ui/gui/var-type-dialog.ui \
53         src/ui/gui/weight.ui
54
55
56 $(top_srcdir)/doc/help-pages-list: $(UI_FILES)
57          $(AM_V_GEN)cat $^ | grep '"help[-_]page"' | \
58    $(SED) -e 's% *<property name="help[-_]page">\([^<]*\)</property>%//*[@id='"'"'\1'"'"']%' \
59         -e 's%#%'"'"']/*[@id='"'"'%g' > $@
60
61 EXTRA_DIST += doc/help-pages-list
62
63
64 EXTRA_DIST += \
65         src/ui/gui/memorandum.txt \
66         src/ui/gui/artwork/actions/.empty \
67         src/ui/gui/artwork/apps/scalable/.empty \
68         src/ui/gui/gen-dot-desktop.sh \
69         src/ui/gui/marshaller-list \
70         src/ui/gui/pspplogo.svg
71
72 src_ui_gui_psppire_CPPFLAGS=
73
74 if HAVE_GUI
75 bin_PROGRAMS += src/ui/gui/psppire 
76 noinst_PROGRAMS += src/ui/gui/spreadsheet-test 
77
78 src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) $(GTKSOURCEVIEW_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1 
79 src_ui_gui_spreadsheet_test_CFLAGS = $(GTK_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1 
80
81
82 src_ui_gui_psppire_LDFLAGS = \
83         $(PSPPIRE_LDFLAGS) \
84         $(PG_LDFLAGS)
85
86
87 if RELOCATABLE_VIA_LD
88 src_ui_gui_psppire_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
89 else
90 src_ui_gui_psppire_LDFLAGS += -rpath $(pkglibdir)
91 endif
92
93
94 src_ui_gui_psppire_LDADD = \
95         lib/gtk-contrib/libxpaned.a \
96         src/ui/libuicommon.la \
97         src/libpspp.la \
98         src/libpspp-core.la \
99         $(GTK_LIBS) \
100         $(GTHREAD_LIBS) \
101         $(GTKSOURCEVIEW_LIBS) \
102         $(CAIRO_LIBS) \
103         $(LIBINTL) \
104         $(GSL_LIBS)
105
106
107 src_ui_gui_spreadsheet_test_LDADD = \
108         src/libpspp-core.la \
109         $(GTK_LIBS) \
110         $(GTHREAD_LIBS)
111
112
113 src_ui_gui_spreadsheet_test_SOURCES = src/ui/gui/spreadsheet-test.c src/ui/gui/psppire-spreadsheet-model.c
114
115 src_ui_gui_psppiredir = $(pkgdatadir)
116
117
118 install-lang:
119         $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/pspp.lang $(DESTDIR)$(pkgdatadir)
120
121 INSTALL_DATA_HOOKS += install-lang
122
123 dist_src_ui_gui_psppire_DATA = \
124         $(UI_FILES) \
125         $(top_srcdir)/src/ui/gui/pspp.lang \
126         $(top_srcdir)/src/ui/gui/psppire.gtkrc
127
128 src_ui_gui_psppire_SOURCES = \
129         src/ui/gui/pspp-sheet-private.h \
130         src/ui/gui/pspp-sheet-selection.c \
131         src/ui/gui/pspp-sheet-selection.h \
132         src/ui/gui/pspp-sheet-view-column.c \
133         src/ui/gui/pspp-sheet-view-column.h \
134         src/ui/gui/pspp-sheet-view.c \
135         src/ui/gui/pspp-sheet-view.h \
136         src/ui/gui/pspp-widget-facade.c \
137         src/ui/gui/pspp-widget-facade.h \
138         src/ui/gui/psppire-button-editable.c \
139         src/ui/gui/psppire-button-editable.h \
140         src/ui/gui/psppire-cell-renderer-button.c \
141         src/ui/gui/psppire-cell-renderer-button.h \
142         src/ui/gui/psppire-dialog.c \
143         src/ui/gui/psppire-keypad.c \
144         src/ui/gui/psppire-selector.c \
145         src/ui/gui/psppire-buttonbox.c \
146         src/ui/gui/psppire-hbuttonbox.c \
147         src/ui/gui/psppire-vbuttonbox.c \
148         src/ui/gui/psppire-scanf.c \
149         src/ui/gui/psppire-scanf.h \
150         src/ui/gui/psppire-acr.c \
151         src/ui/gui/psppire-import-assistant.c \
152         src/ui/gui/psppire-import-assistant.h \
153         src/ui/gui/builder-wrapper.c \
154         src/ui/gui/builder-wrapper.h \
155         src/ui/gui/dialog-common.c \
156         src/ui/gui/dialog-common.h \
157         src/ui/gui/dict-display.h \
158         src/ui/gui/dict-display.c \
159         src/ui/gui/entry-dialog.c \
160         src/ui/gui/entry-dialog.h \
161         src/ui/gui/executor.c \
162         src/ui/gui/executor.h \
163         src/ui/gui/find-dialog.c \
164         src/ui/gui/find-dialog.h \
165         src/ui/gui/goto-case-dialog.c \
166         src/ui/gui/goto-case-dialog.h \
167         src/ui/gui/helper.c \
168         src/ui/gui/help-menu.c \
169         src/ui/gui/help-menu.h \
170         src/ui/gui/helper.h \
171         src/ui/gui/main.c \
172         src/ui/gui/missing-val-dialog.c \
173         src/ui/gui/missing-val-dialog.h \
174         src/ui/gui/psppire.c \
175         src/ui/gui/psppire.h \
176         src/ui/gui/psppire-acr.h \
177         src/ui/gui/psppire-buttonbox.h \
178         src/ui/gui/psppire-checkbox-treeview.c \
179         src/ui/gui/psppire-checkbox-treeview.h \
180         src/ui/gui/psppire-conf.c \
181         src/ui/gui/psppire-conf.h \
182         src/ui/gui/psppire-data-editor.c \
183         src/ui/gui/psppire-data-editor.h \
184         src/ui/gui/psppire-data-sheet.c \
185         src/ui/gui/psppire-data-sheet.h \
186         src/ui/gui/psppire-data-store.c \
187         src/ui/gui/psppire-data-store.h \
188         src/ui/gui/psppire-data-window.c \
189         src/ui/gui/psppire-data-window.h \
190         src/ui/gui/psppire-dialog.h \
191         src/ui/gui/psppire-dialog-action.c \
192         src/ui/gui/psppire-dialog-action.h \
193         src/ui/gui/psppire-dialog-action-aggregate.c \
194         src/ui/gui/psppire-dialog-action-aggregate.h \
195         src/ui/gui/psppire-dialog-action-autorecode.c \
196         src/ui/gui/psppire-dialog-action-autorecode.h \
197         src/ui/gui/psppire-dialog-action-1sks.c \
198         src/ui/gui/psppire-dialog-action-1sks.h \
199         src/ui/gui/psppire-dialog-action-barchart.c \
200         src/ui/gui/psppire-dialog-action-barchart.h \
201         src/ui/gui/psppire-dialog-action-binomial.c \
202         src/ui/gui/psppire-dialog-action-binomial.h \
203         src/ui/gui/psppire-dialog-action-chisquare.c \
204         src/ui/gui/psppire-dialog-action-chisquare.h \
205         src/ui/gui/psppire-dialog-action-compute.c \
206         src/ui/gui/psppire-dialog-action-compute.h \
207         src/ui/gui/psppire-dialog-action-comments.c \
208         src/ui/gui/psppire-dialog-action-comments.h \
209         src/ui/gui/psppire-dialog-action-count.c \
210         src/ui/gui/psppire-dialog-action-count.h \
211         src/ui/gui/psppire-dialog-action-correlation.c \
212         src/ui/gui/psppire-dialog-action-correlation.h \
213         src/ui/gui/psppire-dialog-action-crosstabs.c \
214         src/ui/gui/psppire-dialog-action-crosstabs.h \
215         src/ui/gui/psppire-dialog-action-descriptives.c \
216         src/ui/gui/psppire-dialog-action-descriptives.h \
217         src/ui/gui/psppire-dialog-action-examine.c \
218         src/ui/gui/psppire-dialog-action-examine.h \
219         src/ui/gui/psppire-dialog-action-factor.c \
220         src/ui/gui/psppire-dialog-action-factor.h \
221         src/ui/gui/psppire-dialog-action-flip.c \
222         src/ui/gui/psppire-dialog-action-flip.h \
223         src/ui/gui/psppire-dialog-action-frequencies.c \
224         src/ui/gui/psppire-dialog-action-frequencies.h \
225         src/ui/gui/psppire-dialog-action-histogram.c \
226         src/ui/gui/psppire-dialog-action-histogram.h \
227         src/ui/gui/psppire-dialog-action-indep-samps.c \
228         src/ui/gui/psppire-dialog-action-indep-samps.h \
229         src/ui/gui/psppire-dialog-action-kmeans.c \
230         src/ui/gui/psppire-dialog-action-kmeans.h \
231         src/ui/gui/psppire-dialog-action-logistic.c \
232         src/ui/gui/psppire-dialog-action-logistic.h \
233         src/ui/gui/psppire-dialog-action-k-related.c \
234         src/ui/gui/psppire-dialog-action-k-related.h \
235         src/ui/gui/psppire-dialog-action-means.c \
236         src/ui/gui/psppire-dialog-action-means.h \
237         src/ui/gui/psppire-dialog-action-oneway.c \
238         src/ui/gui/psppire-dialog-action-oneway.h \
239         src/ui/gui/psppire-dialog-action-paired.c \
240         src/ui/gui/psppire-dialog-action-paired.h \
241         src/ui/gui/psppire-dialog-action-rank.c \
242         src/ui/gui/psppire-dialog-action-rank.h \
243         src/ui/gui/psppire-dialog-action-recode.c \
244         src/ui/gui/psppire-dialog-action-recode.h \
245         src/ui/gui/psppire-dialog-action-recode-same.c \
246         src/ui/gui/psppire-dialog-action-recode-same.h \
247         src/ui/gui/psppire-dialog-action-recode-different.c \
248         src/ui/gui/psppire-dialog-action-recode-different.h \
249         src/ui/gui/psppire-dialog-action-regression.c \
250         src/ui/gui/psppire-dialog-action-regression.h \
251         src/ui/gui/psppire-dialog-action-reliability.c \
252         src/ui/gui/psppire-dialog-action-reliability.h \
253         src/ui/gui/psppire-dialog-action-roc.c \
254         src/ui/gui/psppire-dialog-action-roc.h \
255         src/ui/gui/psppire-dialog-action-runs.c \
256         src/ui/gui/psppire-dialog-action-runs.h \
257         src/ui/gui/psppire-dialog-action-scatterplot.c \
258         src/ui/gui/psppire-dialog-action-scatterplot.h \
259         src/ui/gui/psppire-dialog-action-sort.c \
260         src/ui/gui/psppire-dialog-action-sort.h \
261         src/ui/gui/psppire-dialog-action-select.c \
262         src/ui/gui/psppire-dialog-action-select.h \
263         src/ui/gui/psppire-dialog-action-split.c \
264         src/ui/gui/psppire-dialog-action-split.h \
265         src/ui/gui/psppire-dialog-action-tt1s.c \
266         src/ui/gui/psppire-dialog-action-tt1s.h \
267         src/ui/gui/psppire-dialog-action-two-sample.c \
268         src/ui/gui/psppire-dialog-action-two-sample.h \
269         src/ui/gui/psppire-dialog-action-univariate.c \
270         src/ui/gui/psppire-dialog-action-univariate.h \
271         src/ui/gui/psppire-dialog-action-var-info.c \
272         src/ui/gui/psppire-dialog-action-var-info.h \
273         src/ui/gui/psppire-dialog-action-weight.c \
274         src/ui/gui/psppire-dialog-action-weight.h \
275         src/ui/gui/psppire-dict.c \
276         src/ui/gui/psppire-dict.h \
277         src/ui/gui/psppire-dictview.c \
278         src/ui/gui/psppire-dictview.h \
279         src/ui/gui/psppire-empty-list-store.c \
280         src/ui/gui/psppire-empty-list-store.h \
281         src/ui/gui/psppire-encoding-selector.c \
282         src/ui/gui/psppire-encoding-selector.h \
283         src/ui/gui/psppire-format.c \
284         src/ui/gui/psppire-format.h \
285         src/ui/gui/psppire-hbuttonbox.h \
286         src/ui/gui/psppire-keypad.h \
287         src/ui/gui/psppire-lex-reader.c \
288         src/ui/gui/psppire-lex-reader.h \
289         src/ui/gui/psppire-means-layer.c \
290         src/ui/gui/psppire-means-layer.h \
291         src/ui/gui/psppire-output-view.c \
292         src/ui/gui/psppire-output-view.h \
293         src/ui/gui/psppire-output-window.c \
294         src/ui/gui/psppire-output-window.h \
295         src/ui/gui/psppire-var-view.c \
296         src/ui/gui/psppire-var-view.h \
297         src/ui/gui/psppire-spreadsheet-model.c \
298         src/ui/gui/psppire-spreadsheet-model.h \
299         src/ui/gui/psppire-selector.h \
300         src/ui/gui/psppire-select-dest.c \
301         src/ui/gui/psppire-select-dest.h \
302         src/ui/gui/psppire-syntax-window.c \
303         src/ui/gui/psppire-syntax-window.h \
304         src/ui/gui/psppire-val-chooser.c \
305         src/ui/gui/psppire-val-chooser.h \
306         src/ui/gui/psppire-value-entry.c \
307         src/ui/gui/psppire-value-entry.h \
308         src/ui/gui/psppire-var-ptr.c \
309         src/ui/gui/psppire-var-ptr.h \
310         src/ui/gui/psppire-var-sheet.h \
311         src/ui/gui/psppire-var-sheet-header.h \
312         src/ui/gui/psppire-var-sheet-header.c \
313         src/ui/gui/psppire-vbuttonbox.h \
314         src/ui/gui/psppire-window.c \
315         src/ui/gui/psppire-window.h \
316         src/ui/gui/psppire-window-base.c \
317         src/ui/gui/psppire-window-base.h \
318         src/ui/gui/psppire-window-register.c \
319         src/ui/gui/psppire-window-register.h \
320         src/ui/gui/t-test-options.c \
321         src/ui/gui/t-test-options.h \
322         src/ui/gui/val-labs-dialog.c \
323         src/ui/gui/val-labs-dialog.h \
324         src/ui/gui/var-display.c \
325         src/ui/gui/var-display.h \
326         src/ui/gui/var-type-dialog.c \
327         src/ui/gui/var-type-dialog.h \
328         src/ui/gui/widget-io.c \
329         src/ui/gui/widget-io.h \
330         src/ui/gui/widgets.c \
331         src/ui/gui/widgets.h \
332         src/ui/gui/windows-menu.c \
333         src/ui/gui/windows-menu.h
334
335
336 OBSOLETE = \
337         src/ui/gui/page-assistant.c \
338         src/ui/gui/page-intro.c \
339         src/ui/gui/page-intro.h \
340         src/ui/gui/page-file.c \
341         src/ui/gui/page-first-line.c \
342         src/ui/gui/page-first-line.h \
343         src/ui/gui/page-formats.c \
344         src/ui/gui/page-formats.h \
345         src/ui/gui/page-separators.c \
346         src/ui/gui/page-separators.h \
347         src/ui/gui/page-sheet-spec.c \
348         src/ui/gui/page-sheet-spec.h \
349         src/ui/gui/text-data-import-dialog.c \
350         src/ui/gui/text-data-import-dialog.h
351
352
353 nodist_src_ui_gui_psppire_SOURCES = \
354         src/ui/gui/psppire-marshal.c \
355         src/ui/gui/psppire-marshal.h
356
357 yelp-check:
358         @if ! yelp --version > /dev/null 2>&1 ; then \
359                 echo    ; \
360                 echo '    The Yelp document viewer does not seem to be installed on the system.' ; \
361                 echo '    If Yelp is not available at run time, then the PSPPIRE online reference' ; \
362                 echo '    manual will not be available.' ; \
363                 echo '    Yelp is available from the GNOME project.  ftp://ftp.gnome.org/pub/gnome/sources/yelp' ; \
364                 echo ; \
365         fi
366
367 PHONY += yelp-check
368
369 AM_CPPFLAGS += -Isrc
370
371 src/ui/gui/pspp.desktop: src/ui/gui/gen-dot-desktop.sh $(POFILES)
372         $(AM_V_GEN)POFILES="$(POFILES)" top_builddir="$(top_builddir)" $(SHELL) $< > $@
373
374 CLEANFILES+=src/ui/gui/pspp.desktop
375
376 src/ui/gui/psppire-marshal.c: src/ui/gui/marshaller-list
377         $(AM_V_GEN)echo '#include <config.h>' > $@
378         $(AM_V_at)$(GLIB_GENMARSHAL) --body --prefix=psppire_marshal $? >> $@
379
380 src/ui/gui/psppire-marshal.h: src/ui/gui/marshaller-list
381         $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=psppire_marshal $? > $@
382
383 desktopdir = $(datadir)/applications
384 desktop_DATA = src/ui/gui/pspp.desktop
385
386 appdatadir = $(datadir)/appdata
387 dist_appdata_DATA = src/ui/gui/pspp.appdata.xml
388
389 BUILT_SOURCES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h
390 CLEANFILES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h \
391         $(nodist_src_ui_gui_psppire_DATA)
392 include $(top_srcdir)/src/ui/gui/efficient-sheet.mk
393 endif HAVE_GUI
394
395 #ensure the installcheck passes even if there is no X server available
396 installcheck-local:
397         DISPLAY=/invalid/port $(MAKE) $(AM_MAKEFLAGS) installcheck-binPROGRAMS
398
399 # <gtk/gtk.h> wrapper
400 src_ui_gui_psppire_CPPFLAGS += $(AM_CPPFLAGS) -Isrc/ui/gui/include
401 BUILT_SOURCES += src/ui/gui/include/gtk/gtk.h
402 src/ui/gui/include/gtk/gtk.h: src/ui/gui/include/gtk/gtk.in.h
403         @$(MKDIR_P) src/ui/gui/include/gtk
404         $(AM_V_GEN)rm -f $@-t $@ && \
405         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
406           $(SED) -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
407               -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
408               -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
409               -e 's|@''NEXT_GTK_GTK_H''@|$(NEXT_GTK_GTK_H)|g' \
410               < $(srcdir)/src/ui/gui/include/gtk/gtk.in.h; \
411         } > $@-t && \
412         mv $@-t $@
413 CLEANFILES += src/ui/gui/include/gtk/gtk.h
414 EXTRA_DIST += src/ui/gui/include/gtk/gtk.in.h
415
416 include $(top_srcdir)/src/ui/gui/icons/automake.mk
417
418 UNINSTALL_DATA_HOOKS += update-icon-cache
419 INSTALL_DATA_HOOKS += update-icon-cache
420