Fix problems with make distcheck
[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) $(GLADE_CFLAGS) -Wall \
8         -DINSTALLDIR=\"$(bindir)\" -DGDK_MULTIHEAD_SAFE=1
9
10
11 src_ui_gui_psppire_LDFLAGS = \
12         $(PSPPIRE_LDFLAGS) \
13         $(PG_LDFLAGS)
14
15
16 if RELOCATABLE_VIA_LD
17 src_ui_gui_psppire_LDFLAGS += `$(RELOCATABLE_LDFLAGS) $(bindir)`
18 else
19 src_ui_gui_psppire_LDFLAGS += -rpath $(pkglibdir)
20 endif
21
22
23 # The library libpsppire contains a single function to register our custom widgets with libglade.
24 # This library is dynamically loaded by libglade.   On w32 platforms, dynamic libraries simply 
25 # can't be created unless all of the symbols can be resolved at link time.  Thus, all the custom 
26 # widgets have to be available.  
27 # But they can't appear in the library AND the binary, otherwise glib complains about them already
28 # existing (and its a waste of space).  So we have a seperate shared library (statically loaded) 
29 # libpsppwidgets which contains our custom widgets.
30
31 pkglib_LTLIBRARIES = src/ui/gui/libpsppwidgets.la src/ui/gui/libpsppire.la 
32
33 src_ui_gui_libpsppwidgets_la_CFLAGS = $(GTK_CFLAGS)
34 src_ui_gui_libpsppwidgets_la_LDFLAGS = -no-undefined
35 src_ui_gui_libpsppwidgets_la_LIBADD = $(GTK_LIBS)
36
37 src_ui_gui_libpsppwidgets_la_SOURCES = \
38         src/ui/gui/psppire-dialog.c \
39         src/ui/gui/psppire-keypad.c \
40         src/ui/gui/psppire-selector.c \
41         src/ui/gui/psppire-buttonbox.c \
42         src/ui/gui/psppire-hbuttonbox.c \
43         src/ui/gui/psppire-vbuttonbox.c \
44         src/ui/gui/psppire-acr.c 
45
46
47 src_ui_gui_libpsppire_la_CFLAGS = $(GLADE_CFLAGS) 
48 src_ui_gui_libpsppire_la_LDFLAGS = -no-undefined
49 src_ui_gui_libpsppire_la_LIBADD = $(GLADE_LIBS) src/ui/gui/libpsppwidgets.la
50
51 src_ui_gui_libpsppire_la_SOURCES = \
52         src/ui/gui/glade-register.c
53
54 src_ui_gui_psppire_LDADD = \
55         -dlopen src/ui/gui/libpsppire.la \
56         src/ui/gui/libpsppwidgets.la \
57         src/ui/gui/sheet/libsheet.la \
58         lib/gtk-contrib/libgtksheet.a \
59         src/ui/libuicommon.la \
60         src/libpspp.la \
61         src/libpspp-core.la \
62         $(GTK_LIBS) \
63         $(GLADE_LIBS) \
64         @LIBINTL@ \
65         $(LIB_CLOSE)
66
67 src_ui_gui_psppiredir = $(pkgdatadir)
68
69 nodist_src_ui_gui_psppire_DATA = \
70         $(top_builddir)/src/ui/gui/crosstabs.ui \
71         $(top_builddir)/src/ui/gui/data-editor.ui \
72         $(top_builddir)/src/ui/gui/examine.ui \
73         $(top_builddir)/src/ui/gui/frequencies.ui \
74         $(top_builddir)/src/ui/gui/message-dialog.ui \
75         $(top_builddir)/src/ui/gui/psppire.ui \
76         $(top_builddir)/src/ui/gui/oneway.ui \
77         $(top_builddir)/src/ui/gui/output-viewer.ui \
78         $(top_builddir)/src/ui/gui/rank.ui \
79         $(top_builddir)/src/ui/gui/recode.ui \
80         $(top_builddir)/src/ui/gui/regression.ui \
81         $(top_builddir)/src/ui/gui/syntax-editor.ui \
82         $(top_builddir)/src/ui/gui/t-test.ui
83
84 EXTRA_DIST += \
85         $(top_srcdir)/src/ui/gui/crosstabs.glade \
86         $(top_srcdir)/src/ui/gui/examine.glade \
87         $(top_srcdir)/src/ui/gui/frequencies.glade \
88         $(top_srcdir)/src/ui/gui/message-dialog.glade \
89         $(top_srcdir)/src/ui/gui/psppire.glade \
90         $(top_srcdir)/src/ui/gui/oneway.glade \
91         $(top_srcdir)/src/ui/gui/rank.glade \
92         $(top_srcdir)/src/ui/gui/recode.glade \
93         $(top_srcdir)/src/ui/gui/regression.glade \
94         $(top_srcdir)/src/ui/gui/t-test.glade
95
96 dist_src_ui_gui_psppire_DATA = \
97         $(top_srcdir)/src/ui/gui/data-editor.glade \
98         $(top_srcdir)/src/ui/gui/descriptives-dialog.glade \
99         $(top_srcdir)/src/ui/gui/output-viewer.glade \
100         $(top_srcdir)/src/ui/gui/syntax-editor.glade \
101         $(top_srcdir)/src/ui/gui/text-data-import.glade \
102         $(top_srcdir)/src/ui/gui/psppicon.png \
103         $(top_srcdir)/src/ui/gui/pspplogo.png \
104         $(top_srcdir)/src/ui/gui/icons/value-labels.png \
105         $(top_srcdir)/src/ui/gui/icons/goto-variable.png\
106         $(top_srcdir)/src/ui/gui/icons/insert-case.png \
107         $(top_srcdir)/src/ui/gui/icons/insert-variable.png \
108         $(top_srcdir)/src/ui/gui/icons/recent-dialogs.png \
109         $(top_srcdir)/src/ui/gui/icons/split-file.png \
110         $(top_srcdir)/src/ui/gui/icons/select-cases.png \
111         $(top_srcdir)/src/ui/gui/icons/weight-cases.png \
112         $(top_srcdir)/src/ui/gui/icons/16x16/nominal.png  \
113         $(top_srcdir)/src/ui/gui/icons/16x16/ordinal.png \
114         $(top_srcdir)/src/ui/gui/icons/16x16/scale.png \
115         $(top_srcdir)/src/ui/gui/icons/16x16/string.png \
116         $(top_srcdir)/src/ui/gui/icons/16x16/date-scale.png \
117         $(top_srcdir)/src/ui/gui/icons/splash.png
118
119
120 src_ui_gui_psppire_SOURCES = \
121         src/ui/gui/about.c \
122         src/ui/gui/about.h \
123         src/ui/gui/checkbox-treeview.c \
124         src/ui/gui/checkbox-treeview.h \
125         src/ui/gui/compute-dialog.c \
126         src/ui/gui/compute-dialog.h \
127         src/ui/gui/comments-dialog.c \
128         src/ui/gui/comments-dialog.h \
129         src/ui/gui/crosstabs-dialog.c \
130         src/ui/gui/crosstabs-dialog.h \
131         src/ui/gui/customentry.c \
132         src/ui/gui/customentry.h \
133         src/ui/gui/frequencies-dialog.c \
134         src/ui/gui/frequencies-dialog.h \
135         src/ui/gui/goto-case-dialog.c \
136         src/ui/gui/goto-case-dialog.h \
137         src/ui/gui/descriptives-dialog.c \
138         src/ui/gui/descriptives-dialog.h \
139         src/ui/gui/examine-dialog.c \
140         src/ui/gui/examine-dialog.h \
141         src/ui/gui/find-dialog.c \
142         src/ui/gui/find-dialog.h \
143         src/ui/gui/dialog-common.c \
144         src/ui/gui/dialog-common.h \
145         src/ui/gui/dict-display.c \
146         src/ui/gui/dict-display.h \
147         src/ui/gui/main.c \
148         src/ui/gui/message-dialog.c \
149         src/ui/gui/message-dialog.h \
150         src/ui/gui/psppire.c \
151         src/ui/gui/psppire.h \
152         src/ui/gui/helper.c \
153         src/ui/gui/helper.h \
154         src/ui/gui/missing-val-dialog.c \
155         src/ui/gui/missing-val-dialog.h \
156         src/ui/gui/oneway-anova-dialog.c \
157         src/ui/gui/oneway-anova-dialog.h \
158         src/ui/gui/psppire-acr.h \
159         src/ui/gui/psppire-buttonbox.h \
160         src/ui/gui/psppire-hbuttonbox.h \
161         src/ui/gui/psppire-vbuttonbox.h \
162         src/ui/gui/psppire-data-store.c \
163         src/ui/gui/psppire-data-store.h \
164         src/ui/gui/psppire-dialog.h \
165         src/ui/gui/psppire-dict.c \
166         src/ui/gui/psppire-dict.h \
167         src/ui/gui/psppire-keypad.h \
168         src/ui/gui/psppire-selector.h \
169         src/ui/gui/psppire-var-ptr.c \
170         src/ui/gui/psppire-var-ptr.h \
171         src/ui/gui/psppire-var-sheet.c \
172         src/ui/gui/psppire-var-sheet.h \
173         src/ui/gui/psppire-var-store.c \
174         src/ui/gui/psppire-var-store.h \
175         src/ui/gui/rank-dialog.c \
176         src/ui/gui/rank-dialog.h \
177         src/ui/gui/recode-dialog.c \
178         src/ui/gui/recode-dialog.h \
179         src/ui/gui/regression-dialog.c \
180         src/ui/gui/regression-dialog.h \
181         src/ui/gui/select-cases-dialog.c \
182         src/ui/gui/select-cases-dialog.h \
183         src/ui/gui/sort-cases-dialog.c \
184         src/ui/gui/sort-cases-dialog.h \
185         src/ui/gui/split-file-dialog.c \
186         src/ui/gui/split-file-dialog.h \
187         src/ui/gui/syntax-editor-source.c \
188         src/ui/gui/syntax-editor-source.h \
189         src/ui/gui/text-data-import-dialog.c \
190         src/ui/gui/text-data-import-dialog.h \
191         src/ui/gui/transpose-dialog.c \
192         src/ui/gui/transpose-dialog.h \
193         src/ui/gui/t-test-independent-samples-dialog.c \
194         src/ui/gui/t-test-independent-samples-dialog.h \
195         src/ui/gui/t-test-one-sample.c \
196         src/ui/gui/t-test-one-sample.h \
197         src/ui/gui/t-test-options.c \
198         src/ui/gui/t-test-options.h \
199         src/ui/gui/t-test-paired-samples.c \
200         src/ui/gui/t-test-paired-samples.h \
201         src/ui/gui/val-labs-dialog.c \
202         src/ui/gui/val-labs-dialog.h \
203         src/ui/gui/var-display.c \
204         src/ui/gui/var-display.h \
205         src/ui/gui/var-type-dialog.c \
206         src/ui/gui/var-type-dialog.h \
207         src/ui/gui/variable-info-dialog.c \
208         src/ui/gui/variable-info-dialog.h \
209         src/ui/gui/weight-cases-dialog.c \
210         src/ui/gui/weight-cases-dialog.h \
211         src/ui/gui/widget-io.c \
212         src/ui/gui/widget-io.h \
213         src/ui/gui/psppire-data-editor.c \
214         src/ui/gui/psppire-data-editor.h \
215         src/ui/gui/psppire-data-window.c \
216         src/ui/gui/psppire-data-window.h \
217         src/ui/gui/psppire-output-window.c \
218         src/ui/gui/psppire-output-window.h \
219         src/ui/gui/psppire-window.c \
220         src/ui/gui/psppire-window.h \
221         src/ui/gui/psppire-window-register.c \
222         src/ui/gui/psppire-window-register.h \
223         src/ui/gui/psppire-syntax-window.c \
224         src/ui/gui/psppire-syntax-window.h
225
226 nodist_src_ui_gui_psppire_SOURCES = \
227         src/ui/gui/psppire-marshal.c \
228         src/ui/gui/psppire-marshal.h
229
230
231 yelp-check:
232         @if ! yelp --version > /dev/null 2>&1 ; then \
233                 echo    ; \
234                 echo '    The Yelp document viewer does not seem to be installed on the system.' ; \
235                 echo '    If Yelp is not available at run time, then the PSPPIRE online reference' ; \
236                 echo '    manual will not be available.' ; \
237                 echo '    Yelp is available from the GNOME project.  ftp://ftp.gnome.org/pub/gnome/sources/yelp' ; \
238                 echo ; \
239         fi
240 PHONY += yelp-check
241
242 AM_CPPFLAGS += -Isrc
243
244 src/ui/gui/psppire-marshal.c: src/ui/gui/marshaller-list
245         glib-genmarshal --body --prefix=psppire_marshal $< > $@
246
247 src/ui/gui/psppire-marshal.h: src/ui/gui/marshaller-list
248         glib-genmarshal --header --prefix=psppire_marshal $< > $@
249
250 .glade.ui:
251         gtk-builder-convert $< $@
252
253 EXTRA_DIST += src/ui/gui/OChangeLog\
254         src/ui/gui/marshaller-list
255
256 BUILT_SOURCES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h
257 CLEANFILES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h \
258         $(nodist_src_ui_gui_psppire_DATA)