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