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