Categoricals.c Create entries for all groups.
[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/binomial.ui \
8         src/ui/gui/compute.ui \
9         src/ui/gui/correlation.ui \
10         src/ui/gui/crosstabs.ui \
11         src/ui/gui/chi-square.ui \
12         src/ui/gui/descriptives.ui \
13         src/ui/gui/examine.ui \
14         src/ui/gui/goto-case.ui \
15         src/ui/gui/factor.ui \
16         src/ui/gui/find.ui \
17         src/ui/gui/frequencies.ui \
18         src/ui/gui/oneway.ui \
19         src/ui/gui/psppire.ui \
20         src/ui/gui/rank.ui \
21         src/ui/gui/sort.ui \
22         src/ui/gui/recode.ui \
23         src/ui/gui/regression.ui \
24         src/ui/gui/reliability.ui \
25         src/ui/gui/roc.ui \
26         src/ui/gui/select-cases.ui \
27         src/ui/gui/t-test.ui \
28         src/ui/gui/text-data-import.ui \
29         src/ui/gui/var-sheet-dialogs.ui \
30         src/ui/gui/variable-info.ui \
31         src/ui/gui/data-editor.ui \
32         src/ui/gui/output-viewer.ui \
33         src/ui/gui/syntax-editor.ui
34
35 EXTRA_DIST += \
36         src/ui/gui/OChangeLog \
37         src/ui/gui/psppicon.png \
38         src/ui/gui/marshaller-list \
39         src/ui/gui/pspp.desktop
40
41 if HAVE_GUI
42 bin_PROGRAMS += src/ui/gui/psppire 
43
44 src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1
45
46
47 src_ui_gui_psppire_LDFLAGS = \
48         $(PSPPIRE_LDFLAGS) \
49         $(PG_LDFLAGS)
50
51
52 if RELOCATABLE_VIA_LD
53 src_ui_gui_psppire_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
54 else
55 src_ui_gui_psppire_LDFLAGS += -rpath $(pkglibdir)
56 endif
57
58
59 src_ui_gui_psppire_LDADD = \
60         src/ui/gui/sheet/libsheet.la \
61         lib/gtk-contrib/libgtksheet.a \
62         src/ui/libuicommon.la \
63         src/libpspp.la \
64         src/libpspp-core.la \
65         $(GTK_LIBS) \
66         $(CAIRO_LIBS) \
67         $(LIBINTL)
68
69 src_ui_gui_psppiredir = $(pkgdatadir)
70
71
72 themedir = $(DESTDIR)$(datadir)/icons/hicolor
73 context = apps
74
75
76 install-icons:
77         for size in 16x16 ; do \
78           $(MKDIR_P) $(themedir)/$$size/$(context) ; \
79           $(INSTALL) $(top_srcdir)/src/ui/gui/psppicon.png $(themedir)/$$size/$(context) ; \
80         done 
81         gtk-update-icon-cache --ignore-theme-index $(themedir)
82
83 INSTALL_DATA_HOOKS += install-icons
84
85 uninstall-icons:
86         for size in 16x16 ; do \
87           rm -f $(themedir)/$$size/$(context)/psppicon.png ; \
88         done 
89         gtk-update-icon-cache --ignore-theme-index $(themedir)
90
91 UNINSTALL_DATA_HOOKS += uninstall-icons
92
93 dist_src_ui_gui_psppire_DATA = \
94         $(UI_FILES) \
95         $(top_srcdir)/src/ui/gui/pspplogo.png \
96         $(top_srcdir)/src/ui/gui/icons/value-labels.png \
97         $(top_srcdir)/src/ui/gui/icons/goto-variable.png\
98         $(top_srcdir)/src/ui/gui/icons/insert-case.png \
99         $(top_srcdir)/src/ui/gui/icons/insert-variable.png \
100         $(top_srcdir)/src/ui/gui/icons/recent-dialogs.png \
101         $(top_srcdir)/src/ui/gui/icons/split-file.png \
102         $(top_srcdir)/src/ui/gui/icons/select-cases.png \
103         $(top_srcdir)/src/ui/gui/icons/weight-cases.png \
104         $(top_srcdir)/src/ui/gui/icons/16x16/nominal.png  \
105         $(top_srcdir)/src/ui/gui/icons/16x16/ordinal.png \
106         $(top_srcdir)/src/ui/gui/icons/16x16/scale.png \
107         $(top_srcdir)/src/ui/gui/icons/16x16/string.png \
108         $(top_srcdir)/src/ui/gui/icons/16x16/date-scale.png \
109         $(top_srcdir)/src/ui/gui/icons/splash.png
110
111
112 src_ui_gui_psppire_SOURCES = \
113         src/ui/gui/psppire-dialog.c \
114         src/ui/gui/psppire-keypad.c \
115         src/ui/gui/psppire-selector.c \
116         src/ui/gui/psppire-buttonbox.c \
117         src/ui/gui/psppire-hbuttonbox.c \
118         src/ui/gui/psppire-vbuttonbox.c \
119         src/ui/gui/psppire-acr.c \
120         src/ui/gui/aggregate-dialog.c \
121         src/ui/gui/aggregate-dialog.h \
122         src/ui/gui/binomial-dialog.c \
123         src/ui/gui/binomial-dialog.h \
124         src/ui/gui/checkbox-treeview.c \
125         src/ui/gui/checkbox-treeview.h \
126         src/ui/gui/comments-dialog.c \
127         src/ui/gui/comments-dialog.h \
128         src/ui/gui/compute-dialog.c \
129         src/ui/gui/compute-dialog.h \
130         src/ui/gui/chi-square-dialog.c \
131         src/ui/gui/chi-square-dialog.h \
132         src/ui/gui/correlation-dialog.c \
133         src/ui/gui/correlation-dialog.h \
134         src/ui/gui/crosstabs-dialog.c \
135         src/ui/gui/crosstabs-dialog.h \
136         src/ui/gui/customentry.c \
137         src/ui/gui/customentry.h \
138         src/ui/gui/descriptives-dialog.c \
139         src/ui/gui/descriptives-dialog.h \
140         src/ui/gui/dialog-common.c \
141         src/ui/gui/dialog-common.h \
142         src/ui/gui/dict-display.h \
143         src/ui/gui/dict-display.c \
144         src/ui/gui/examine-dialog.c \
145         src/ui/gui/examine-dialog.h \
146         src/ui/gui/executor.c \
147         src/ui/gui/executor.h \
148         src/ui/gui/find-dialog.c \
149         src/ui/gui/find-dialog.h \
150         src/ui/gui/factor-dialog.c \
151         src/ui/gui/factor-dialog.h \
152         src/ui/gui/frequencies-dialog.c \
153         src/ui/gui/frequencies-dialog.h \
154         src/ui/gui/goto-case-dialog.c \
155         src/ui/gui/goto-case-dialog.h \
156         src/ui/gui/helper.c \
157         src/ui/gui/help-menu.c \
158         src/ui/gui/help-menu.h \
159         src/ui/gui/helper.h \
160         src/ui/gui/main.c \
161         src/ui/gui/missing-val-dialog.c \
162         src/ui/gui/missing-val-dialog.h \
163         src/ui/gui/oneway-anova-dialog.c \
164         src/ui/gui/oneway-anova-dialog.h \
165         src/ui/gui/psppire.c \
166         src/ui/gui/psppire.h \
167         src/ui/gui/psppire-acr.h \
168         src/ui/gui/psppire-buttonbox.h \
169         src/ui/gui/psppire-conf.c \
170         src/ui/gui/psppire-conf.h \
171         src/ui/gui/psppire-data-editor.c \
172         src/ui/gui/psppire-data-editor.h \
173         src/ui/gui/psppire-data-store.c \
174         src/ui/gui/psppire-data-store.h \
175         src/ui/gui/psppire-data-window.c \
176         src/ui/gui/psppire-data-window.h \
177         src/ui/gui/psppire-dialog.h \
178         src/ui/gui/psppire-dict.c \
179         src/ui/gui/psppire-dict.h \
180         src/ui/gui/psppire-dictview.c \
181         src/ui/gui/psppire-dictview.h \
182         src/ui/gui/psppire-hbuttonbox.h \
183         src/ui/gui/psppire-keypad.h \
184         src/ui/gui/psppire-output-window.c \
185         src/ui/gui/psppire-output-window.h \
186         src/ui/gui/psppire-var-view.c \
187         src/ui/gui/psppire-var-view.h \
188         src/ui/gui/psppire-selector.h \
189         src/ui/gui/psppire-select-dest.c \
190         src/ui/gui/psppire-select-dest.h \
191         src/ui/gui/psppire-syntax-window.c \
192         src/ui/gui/psppire-syntax-window.h \
193         src/ui/gui/psppire-var-ptr.c \
194         src/ui/gui/psppire-var-ptr.h \
195         src/ui/gui/psppire-var-sheet.c \
196         src/ui/gui/psppire-var-sheet.h \
197         src/ui/gui/psppire-var-store.c \
198         src/ui/gui/psppire-var-store.h \
199         src/ui/gui/psppire-vbuttonbox.h \
200         src/ui/gui/psppire-window.c \
201         src/ui/gui/psppire-window.h \
202         src/ui/gui/psppire-window-register.c \
203         src/ui/gui/psppire-window-register.h \
204         src/ui/gui/rank-dialog.c \
205         src/ui/gui/rank-dialog.h \
206         src/ui/gui/recode-dialog.c \
207         src/ui/gui/recode-dialog.h \
208         src/ui/gui/regression-dialog.c \
209         src/ui/gui/regression-dialog.h \
210         src/ui/gui/reliability-dialog.c \
211         src/ui/gui/reliability-dialog.h \
212         src/ui/gui/roc-dialog.c \
213         src/ui/gui/roc-dialog.h \
214         src/ui/gui/select-cases-dialog.c \
215         src/ui/gui/select-cases-dialog.h \
216         src/ui/gui/sort-cases-dialog.c \
217         src/ui/gui/sort-cases-dialog.h \
218         src/ui/gui/split-file-dialog.c \
219         src/ui/gui/split-file-dialog.h \
220         src/ui/gui/syntax-editor-source.c \
221         src/ui/gui/syntax-editor-source.h \
222         src/ui/gui/text-data-import-dialog.c \
223         src/ui/gui/text-data-import-dialog.h \
224         src/ui/gui/transpose-dialog.c \
225         src/ui/gui/transpose-dialog.h \
226         src/ui/gui/t-test-independent-samples-dialog.c \
227         src/ui/gui/t-test-independent-samples-dialog.h \
228         src/ui/gui/t-test-one-sample.c \
229         src/ui/gui/t-test-one-sample.h \
230         src/ui/gui/t-test-options.c \
231         src/ui/gui/t-test-options.h \
232         src/ui/gui/t-test-paired-samples.c \
233         src/ui/gui/t-test-paired-samples.h \
234         src/ui/gui/val-labs-dialog.c \
235         src/ui/gui/val-labs-dialog.h \
236         src/ui/gui/var-display.c \
237         src/ui/gui/var-display.h \
238         src/ui/gui/variable-info-dialog.c \
239         src/ui/gui/variable-info-dialog.h \
240         src/ui/gui/var-type-dialog.c \
241         src/ui/gui/var-type-dialog.h \
242         src/ui/gui/weight-cases-dialog.c \
243         src/ui/gui/weight-cases-dialog.h \
244         src/ui/gui/widget-io.c \
245         src/ui/gui/widget-io.h \
246         src/ui/gui/widgets.c \
247         src/ui/gui/widgets.h
248
249 nodist_src_ui_gui_psppire_SOURCES = \
250         src/ui/gui/psppire-marshal.c \
251         src/ui/gui/psppire-marshal.h
252
253
254 yelp-check:
255         @if ! yelp --version > /dev/null 2>&1 ; then \
256                 echo    ; \
257                 echo '    The Yelp document viewer does not seem to be installed on the system.' ; \
258                 echo '    If Yelp is not available at run time, then the PSPPIRE online reference' ; \
259                 echo '    manual will not be available.' ; \
260                 echo '    Yelp is available from the GNOME project.  ftp://ftp.gnome.org/pub/gnome/sources/yelp' ; \
261                 echo ; \
262         fi
263
264 PHONY += yelp-check
265
266 AM_CPPFLAGS += -Isrc
267
268 src/ui/gui/psppire-marshal.c: src/ui/gui/marshaller-list
269         echo '#include <config.h>' > $@
270         $(GLIB_GENMARSHAL) --body --prefix=psppire_marshal $? >> $@
271
272 src/ui/gui/psppire-marshal.h: src/ui/gui/marshaller-list
273         $(GLIB_GENMARSHAL) --header --prefix=psppire_marshal $? > $@
274
275 desktopdir = $(datadir)/applications
276 desktop_DATA = src/ui/gui/pspp.desktop
277
278 BUILT_SOURCES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h
279 CLEANFILES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h \
280         $(nodist_src_ui_gui_psppire_DATA)
281 endif HAVE_GUI
282
283 #ensure the installcheck passes even if there is no X server available
284 installcheck-local:
285         DISPLAY=/invalid/port $(MAKE) $(AM_MAKEFLAGS) installcheck-binPROGRAMS