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