fixed goto case dialog
[pspp] / src / ui / gui / automake.mk
1 # PSPP - a program for statistical analysis.
2 # Copyright (C) 2017 Free Software Foundation, Inc.
3 #
4 # This program is free software: you can redistribute it and/or modify
5 # it under the terms of the GNU General Public License as published by
6 # the Free Software Foundation, either version 3 of the License, or
7 # (at your option) any later version.
8 #
9 # This program is distributed in the hope that it will be useful,
10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12 # GNU General Public License for more details.
13 #
14 # You should have received a copy of the GNU General Public License
15 # along with this program.  If not, see <http://www.gnu.org/licenses/>.
16 #
17 ## Process this file with automake to produce Makefile.in  -*- makefile -*-
18
19 UI_FILES = \
20         src/ui/gui/aggregate.ui \
21         src/ui/gui/autorecode.ui \
22         src/ui/gui/binomial.ui \
23         src/ui/gui/compute.ui \
24         src/ui/gui/barchart.ui \
25         src/ui/gui/correlation.ui \
26         src/ui/gui/count.ui \
27         src/ui/gui/comments.ui \
28         src/ui/gui/crosstabs.ui \
29         src/ui/gui/chi-square.ui \
30         src/ui/gui/descriptives.ui \
31         src/ui/gui/entry-dialog.ui \
32         src/ui/gui/examine.ui \
33         src/ui/gui/goto-case.ui \
34         src/ui/gui/factor.ui \
35         src/ui/gui/find.ui \
36         src/ui/gui/frequencies.ui \
37         src/ui/gui/histogram.ui \
38         src/ui/gui/indep-samples.ui \
39         src/ui/gui/k-independent.ui \
40         src/ui/gui/k-means.ui \
41         src/ui/gui/k-related.ui \
42         src/ui/gui/ks-one-sample.ui \
43         src/ui/gui/logistic.ui \
44         src/ui/gui/means.ui \
45         src/ui/gui/missing-val-dialog.ui \
46         src/ui/gui/oneway.ui \
47         src/ui/gui/options.ui \
48         src/ui/gui/paired-samples.ui \
49         src/ui/gui/rank.ui \
50         src/ui/gui/runs.ui \
51         src/ui/gui/sort.ui \
52         src/ui/gui/split-file.ui \
53         src/ui/gui/recode.ui \
54         src/ui/gui/regression.ui \
55         src/ui/gui/reliability.ui \
56         src/ui/gui/roc.ui \
57         src/ui/gui/scatterplot.ui \
58         src/ui/gui/select-cases.ui \
59         src/ui/gui/t-test.ui \
60         src/ui/gui/text-data-import.ui \
61         src/ui/gui/transpose.ui \
62         src/ui/gui/univariate.ui \
63         src/ui/gui/val-labs-dialog.ui \
64         src/ui/gui/variable-info.ui \
65         src/ui/gui/data-editor.ui \
66         src/ui/gui/output-window.ui \
67         src/ui/gui/syntax-editor.ui \
68         src/ui/gui/var-type-dialog.ui \
69         src/ui/gui/weight.ui
70
71
72 $(top_srcdir)/doc/help-pages-list: $(UI_FILES)
73          $(AM_V_GEN)cat $^ | grep '"help[-_]page"' | \
74    $(SED) -e 's% *<property name="help[-_]page">\([^<]*\)</property>%//*[@id='"'"'\1'"'"']%' \
75         -e 's%#%'"'"']/*[@id='"'"'%g' > $@,tmp
76         test -s $@,tmp
77         mv $@,tmp $@
78
79 EXTRA_DIST += doc/help-pages-list
80
81
82 EXTRA_DIST += \
83         src/ui/gui/memorandum.txt \
84         src/ui/gui/gen-dot-desktop.sh \
85         src/ui/gui/marshaller-list \
86         src/ui/gui/pspplogo.svg
87
88 src_ui_gui_psppire_CPPFLAGS=
89
90 if HAVE_GUI
91 bin_PROGRAMS += src/ui/gui/psppire
92 noinst_PROGRAMS += src/ui/gui/spreadsheet-test
93
94 src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) $(GTKSOURCEVIEW_CFLAGS) $(SPREAD_SHEET_WIDGET_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1
95 src_ui_gui_spreadsheet_test_CFLAGS = $(GTK_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1
96
97
98 src_ui_gui_psppire_LDFLAGS = \
99         $(PSPPIRE_LDFLAGS) \
100         $(PG_LDFLAGS)
101
102
103 if RELOCATABLE_VIA_LD
104 src_ui_gui_psppire_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
105 else
106 src_ui_gui_psppire_LDFLAGS += -rpath $(pkglibdir)
107 endif
108
109
110 src_ui_gui_psppire_LDADD = \
111         src/ui/libuicommon.la \
112         src/libpspp.la \
113         src/libpspp-core.la \
114         $(GTK_LIBS) \
115         $(GTHREAD_LIBS) \
116         $(GTKSOURCEVIEW_LIBS) \
117         $(SPREAD_SHEET_WIDGET_LIBS) \
118         $(CAIRO_LIBS) \
119         $(LIBINTL) \
120         $(GSL_LIBS)
121
122
123 src_ui_gui_spreadsheet_test_LDADD = \
124         src/libpspp-core.la \
125         $(GTK_LIBS) \
126         $(GTHREAD_LIBS)
127
128
129 src_ui_gui_spreadsheet_test_SOURCES = src/ui/gui/spreadsheet-test.c src/ui/gui/psppire-spreadsheet-model.c
130
131 src_ui_gui_psppiredir = $(pkgdatadir)
132
133
134 install-lang:
135         $(INSTALL_DATA) $(top_srcdir)/src/ui/gui/pspp.lang $(DESTDIR)$(pkgdatadir)
136
137 INSTALL_DATA_HOOKS += install-lang
138
139 dist_src_ui_gui_psppire_DATA = \
140         $(UI_FILES) \
141         $(top_srcdir)/src/ui/gui/pspp.lang
142
143 src_ui_gui_psppire_SOURCES = \
144         src/ui/gui/psppire-dialog.c \
145         src/ui/gui/psppire-keypad.c \
146         src/ui/gui/psppire-selector.c \
147         src/ui/gui/psppire-buttonbox.c \
148         src/ui/gui/psppire-buttonbox.h \
149         src/ui/gui/psppire-scanf.c \
150         src/ui/gui/psppire-scanf.h \
151         src/ui/gui/psppire-acr.c \
152         src/ui/gui/psppire-import-assistant.c \
153         src/ui/gui/psppire-import-assistant.h \
154         src/ui/gui/builder-wrapper.c \
155         src/ui/gui/builder-wrapper.h \
156         src/ui/gui/dialog-common.c \
157         src/ui/gui/dialog-common.h \
158         src/ui/gui/dict-display.h \
159         src/ui/gui/dict-display.c \
160         src/ui/gui/entry-dialog.c \
161         src/ui/gui/entry-dialog.h \
162         src/ui/gui/executor.c \
163         src/ui/gui/executor.h \
164         src/ui/gui/find-dialog.c \
165         src/ui/gui/find-dialog.h \
166         src/ui/gui/goto-case-dialog.c \
167         src/ui/gui/goto-case-dialog.h \
168         src/ui/gui/helper.c \
169         src/ui/gui/help-menu.c \
170         src/ui/gui/help-menu.h \
171         src/ui/gui/helper.h \
172         src/ui/gui/main.c \
173         src/ui/gui/missing-val-dialog.c \
174         src/ui/gui/missing-val-dialog.h \
175         src/ui/gui/options-dialog.c \
176         src/ui/gui/options-dialog.h \
177         src/ui/gui/psppire.c \
178         src/ui/gui/psppire.h \
179         src/ui/gui/psppire-acr.h \
180         src/ui/gui/psppire-checkbox-treeview.c \
181         src/ui/gui/psppire-checkbox-treeview.h \
182         src/ui/gui/psppire-conf.c \
183         src/ui/gui/psppire-conf.h \
184         src/ui/gui/psppire-data-editor.c \
185         src/ui/gui/psppire-data-editor.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-independent.c \
234         src/ui/gui/psppire-dialog-action-k-independent.h \
235         src/ui/gui/psppire-dialog-action-k-related.c \
236         src/ui/gui/psppire-dialog-action-k-related.h \
237         src/ui/gui/psppire-dialog-action-means.c \
238         src/ui/gui/psppire-dialog-action-means.h \
239         src/ui/gui/psppire-dialog-action-oneway.c \
240         src/ui/gui/psppire-dialog-action-oneway.h \
241         src/ui/gui/psppire-dialog-action-paired.c \
242         src/ui/gui/psppire-dialog-action-paired.h \
243         src/ui/gui/psppire-dialog-action-rank.c \
244         src/ui/gui/psppire-dialog-action-rank.h \
245         src/ui/gui/psppire-dialog-action-recode.c \
246         src/ui/gui/psppire-dialog-action-recode.h \
247         src/ui/gui/psppire-dialog-action-recode-same.c \
248         src/ui/gui/psppire-dialog-action-recode-same.h \
249         src/ui/gui/psppire-dialog-action-recode-different.c \
250         src/ui/gui/psppire-dialog-action-recode-different.h \
251         src/ui/gui/psppire-dialog-action-regression.c \
252         src/ui/gui/psppire-dialog-action-regression.h \
253         src/ui/gui/psppire-dialog-action-reliability.c \
254         src/ui/gui/psppire-dialog-action-reliability.h \
255         src/ui/gui/psppire-dialog-action-roc.c \
256         src/ui/gui/psppire-dialog-action-roc.h \
257         src/ui/gui/psppire-dialog-action-runs.c \
258         src/ui/gui/psppire-dialog-action-runs.h \
259         src/ui/gui/psppire-dialog-action-scatterplot.c \
260         src/ui/gui/psppire-dialog-action-scatterplot.h \
261         src/ui/gui/psppire-dialog-action-sort.c \
262         src/ui/gui/psppire-dialog-action-sort.h \
263         src/ui/gui/psppire-dialog-action-select.c \
264         src/ui/gui/psppire-dialog-action-select.h \
265         src/ui/gui/psppire-dialog-action-split.c \
266         src/ui/gui/psppire-dialog-action-split.h \
267         src/ui/gui/psppire-dialog-action-tt1s.c \
268         src/ui/gui/psppire-dialog-action-tt1s.h \
269         src/ui/gui/psppire-dialog-action-two-sample.c \
270         src/ui/gui/psppire-dialog-action-two-sample.h \
271         src/ui/gui/psppire-dialog-action-univariate.c \
272         src/ui/gui/psppire-dialog-action-univariate.h \
273         src/ui/gui/psppire-dialog-action-var-info.c \
274         src/ui/gui/psppire-dialog-action-var-info.h \
275         src/ui/gui/psppire-dialog-action-weight.c \
276         src/ui/gui/psppire-dialog-action-weight.h \
277         src/ui/gui/psppire-dict.c \
278         src/ui/gui/psppire-dict.h \
279         src/ui/gui/psppire-dictview.c \
280         src/ui/gui/psppire-dictview.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-keypad.h \
286         src/ui/gui/psppire-lex-reader.c \
287         src/ui/gui/psppire-lex-reader.h \
288         src/ui/gui/psppire-means-layer.c \
289         src/ui/gui/psppire-means-layer.h \
290         src/ui/gui/psppire-output-view.c \
291         src/ui/gui/psppire-output-view.h \
292         src/ui/gui/psppire-output-window.c \
293         src/ui/gui/psppire-output-window.h \
294         src/ui/gui/psppire-var-view.c \
295         src/ui/gui/psppire-var-view.h \
296         src/ui/gui/psppire-spreadsheet-model.c \
297         src/ui/gui/psppire-spreadsheet-model.h \
298         src/ui/gui/psppire-selector.h \
299         src/ui/gui/psppire-select-dest.c \
300         src/ui/gui/psppire-select-dest.h \
301         src/ui/gui/psppire-syntax-window.c \
302         src/ui/gui/psppire-syntax-window.h \
303         src/ui/gui/psppire-delimited-text.c \
304         src/ui/gui/psppire-delimited-text.h \
305         src/ui/gui/psppire-text-file.c \
306         src/ui/gui/psppire-text-file.h \
307         src/ui/gui/psppire-val-chooser.c \
308         src/ui/gui/psppire-val-chooser.h \
309         src/ui/gui/psppire-value-entry.c \
310         src/ui/gui/psppire-value-entry.h \
311         src/ui/gui/psppire-var-ptr.c \
312         src/ui/gui/psppire-var-ptr.h \
313         src/ui/gui/psppire-data-sheet.c \
314         src/ui/gui/psppire-data-sheet.h \
315         src/ui/gui/psppire-variable-sheet.c \
316         src/ui/gui/psppire-variable-sheet.h \
317         src/ui/gui/psppire-var-sheet-header.h \
318         src/ui/gui/psppire-var-sheet-header.c \
319         src/ui/gui/psppire-window.c \
320         src/ui/gui/psppire-window.h \
321         src/ui/gui/psppire-window-base.c \
322         src/ui/gui/psppire-window-base.h \
323         src/ui/gui/psppire-window-register.c \
324         src/ui/gui/psppire-window-register.h \
325         src/ui/gui/t-test-options.c \
326         src/ui/gui/t-test-options.h \
327         src/ui/gui/val-labs-dialog.c \
328         src/ui/gui/val-labs-dialog.h \
329         src/ui/gui/var-display.c \
330         src/ui/gui/var-display.h \
331         src/ui/gui/var-type-dialog.c \
332         src/ui/gui/var-type-dialog.h \
333         src/ui/gui/value-variant.c \
334         src/ui/gui/value-variant.h \
335         src/ui/gui/widget-io.c \
336         src/ui/gui/widget-io.h \
337         src/ui/gui/widgets.c \
338         src/ui/gui/widgets.h \
339         src/ui/gui/windows-menu.c \
340         src/ui/gui/windows-menu.h
341
342
343 OBSOLETE = \
344         src/ui/gui/page-assistant.c \
345         src/ui/gui/page-intro.c \
346         src/ui/gui/page-intro.h \
347         src/ui/gui/page-file.c \
348         src/ui/gui/page-first-line.c \
349         src/ui/gui/page-first-line.h \
350         src/ui/gui/page-formats.c \
351         src/ui/gui/page-formats.h \
352         src/ui/gui/page-separators.c \
353         src/ui/gui/page-separators.h \
354         src/ui/gui/page-sheet-spec.c \
355         src/ui/gui/page-sheet-spec.h \
356         src/ui/gui/text-data-import-dialog.c \
357         src/ui/gui/text-data-import-dialog.h
358
359
360 nodist_src_ui_gui_psppire_SOURCES = \
361         src/ui/gui/psppire-marshal.c \
362         src/ui/gui/psppire-marshal.h \
363         src/ui/gui/resources.c
364
365 yelp-check:
366         @if ! yelp --version > /dev/null 2>&1 ; then \
367                 echo    ; \
368                 echo '    The Yelp document viewer does not seem to be installed on the system.' ; \
369                 echo '    If Yelp is not available at run time, then the PSPPIRE online reference' ; \
370                 echo '    manual will not be available.' ; \
371                 echo '    Yelp is available from the GNOME project.  ftp://ftp.gnome.org/pub/gnome/sources/yelp' ; \
372                 echo ; \
373         fi
374
375 PHONY += yelp-check
376
377 AM_CPPFLAGS += -Isrc
378
379 src/ui/gui/pspp.desktop: src/ui/gui/gen-dot-desktop.sh $(POFILES)
380         $(AM_V_GEN)POFILES="$(POFILES)" top_builddir="$(top_builddir)" $(SHELL) $< > $@
381
382 CLEANFILES+=src/ui/gui/pspp.desktop
383
384 src/ui/gui/resources.c: src/ui/gui/resources.xml
385         $(AM_V_at)$(GLIB_COMPILE_RESOURCES) --sourcedir=$(top_srcdir)/src/ui/gui --generate-source $< --target=$@,out
386         $(AM_V_GEN)echo '#include <config.h>' > $@,tmp
387         cat $@,out >> $@,tmp
388         $(RM) $@,out
389         mv $@,tmp $@
390
391 src/ui/gui/psppire-marshal.c: src/ui/gui/marshaller-list
392         $(AM_V_GEN)echo '#include <config.h>' > $@
393         $(AM_V_at)$(GLIB_GENMARSHAL) --body --prefix=psppire_marshal $? >> $@
394
395 src/ui/gui/psppire-marshal.h: src/ui/gui/marshaller-list
396         $(AM_V_GEN)$(GLIB_GENMARSHAL) --header --prefix=psppire_marshal $? > $@
397
398 desktopdir = $(datadir)/applications
399 desktop_DATA = src/ui/gui/pspp.desktop
400
401 appdatadir = $(datadir)/metainfo
402 dist_appdata_DATA = src/ui/gui/pspp.appdata.xml
403
404 BUILT_SOURCES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h src/ui/gui/resources.c
405
406 CLEANFILES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h \
407         src/ui/gui/resources.c $(nodist_src_ui_gui_psppire_DATA)
408
409 endif HAVE_GUI
410
411 #ensure the installcheck passes even if there is no X server available
412 installcheck-local:
413         DISPLAY=/invalid/port $(MAKE) $(AM_MAKEFLAGS) installcheck-binPROGRAMS
414
415 # <gtk/gtk.h> wrapper
416 src_ui_gui_psppire_CPPFLAGS += $(AM_CPPFLAGS) -Isrc/ui/gui/include
417 BUILT_SOURCES += src/ui/gui/include/gtk/gtk.h
418 src/ui/gui/include/gtk/gtk.h: src/ui/gui/include/gtk/gtk.in.h
419         @$(MKDIR_P) src/ui/gui/include/gtk
420         $(AM_V_GEN)rm -f $@-t $@ && \
421         { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
422           $(SED) -e 's|%''INCLUDE_NEXT''%|$(INCLUDE_NEXT)|g' \
423               -e 's|%''PRAGMA_SYSTEM_HEADER''%|$(PRAGMA_SYSTEM_HEADER)|g' \
424               -e 's|%''PRAGMA_COLUMNS''%|$(PRAGMA_COLUMNS)|g' \
425               -e 's|%''NEXT_GTK_GTK_H''%|$(NEXT_GTK_GTK_H)|g' \
426               < $(srcdir)/src/ui/gui/include/gtk/gtk.in.h; \
427         } > $@-t && \
428         mv $@-t $@
429 CLEANFILES += src/ui/gui/include/gtk/gtk.h
430 EXTRA_DIST += src/ui/gui/include/gtk/gtk.in.h src/ui/gui/resources.xml
431
432 include $(top_srcdir)/src/ui/gui/icons/automake.mk
433
434 UNINSTALL_DATA_HOOKS += update-icon-cache
435 INSTALL_DATA_HOOKS += update-icon-cache
436