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