UI_FILES = \
src/ui/gui/aggregate.ui \
+ src/ui/gui/autorecode.ui \
src/ui/gui/binomial.ui \
src/ui/gui/compute.ui \
src/ui/gui/correlation.ui \
+ src/ui/gui/count.ui \
src/ui/gui/crosstabs.ui \
src/ui/gui/chi-square.ui \
src/ui/gui/descriptives.ui \
+ src/ui/gui/entry-dialog.ui \
src/ui/gui/examine.ui \
src/ui/gui/goto-case.ui \
src/ui/gui/factor.ui \
src/ui/gui/find.ui \
src/ui/gui/frequencies.ui \
+ src/ui/gui/k-means.ui \
+ src/ui/gui/k-related.ui \
+ src/ui/gui/ks-one-sample.ui \
src/ui/gui/oneway.ui \
+ src/ui/gui/paired-samples.ui \
src/ui/gui/psppire.ui \
src/ui/gui/rank.ui \
+ src/ui/gui/runs.ui \
src/ui/gui/sort.ui \
src/ui/gui/split-file.ui \
src/ui/gui/recode.ui \
src/ui/gui/select-cases.ui \
src/ui/gui/t-test.ui \
src/ui/gui/text-data-import.ui \
+ src/ui/gui/univariate.ui \
src/ui/gui/var-sheet-dialogs.ui \
src/ui/gui/variable-info.ui \
src/ui/gui/data-editor.ui \
EXTRA_DIST += \
src/ui/gui/OChangeLog \
- src/ui/gui/psppicon.png \
src/ui/gui/marshaller-list \
src/ui/gui/pspp.desktop
if HAVE_GUI
bin_PROGRAMS += src/ui/gui/psppire
-src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1
+src_ui_gui_psppire_CFLAGS = $(GTK_CFLAGS) $(GTKSOURCEVIEW_CFLAGS) -Wall -DGDK_MULTIHEAD_SAFE=1
src_ui_gui_psppire_LDFLAGS = \
src/libpspp.la \
src/libpspp-core.la \
$(GTK_LIBS) \
+ $(GTKSOURCEVIEW_LIBS) \
$(CAIRO_LIBS) \
$(LIBINTL)
themedir = $(DESTDIR)$(datadir)/icons/hicolor
-context = apps
+context = pspp
+install-lang:
+ $(INSTALL) $(top_srcdir)/src/ui/gui/pspp.lang $(DESTDIR)$(pkgdatadir)
+
install-icons:
for size in 16x16 ; do \
$(MKDIR_P) $(themedir)/$$size/$(context) ; \
- $(INSTALL) $(top_srcdir)/src/ui/gui/psppicon.png $(themedir)/$$size/$(context) ; \
+ $(INSTALL) $(top_srcdir)/src/ui/gui/icons/$$size/* $(themedir)/$$size/$(context) ; \
+ $(MKDIR_P) $(themedir)/$$size/apps ; \
+ $(INSTALL) $(top_srcdir)/src/ui/gui/app-icons/$$size/pspp.png $(themedir)/$$size/apps ; \
done
gtk-update-icon-cache --ignore-theme-index $(themedir)
-INSTALL_DATA_HOOKS += install-icons
+INSTALL_DATA_HOOKS += install-icons install-lang
uninstall-icons:
for size in 16x16 ; do \
- rm -f $(themedir)/$$size/$(context)/psppicon.png ; \
+ rm -r -f $(themedir)/$$size/$(context); \
+ rm -f $(themedir)/$$size/apps/pspp.png; \
done
gtk-update-icon-cache --ignore-theme-index $(themedir)
dist_src_ui_gui_psppire_DATA = \
$(UI_FILES) \
+ $(top_srcdir)/src/ui/gui/app-icons/16x16/pspp.png \
+ $(top_srcdir)/src/ui/gui/pspp.lang \
$(top_srcdir)/src/ui/gui/pspplogo.png \
$(top_srcdir)/src/ui/gui/icons/value-labels.png \
$(top_srcdir)/src/ui/gui/icons/goto-variable.png\
$(top_srcdir)/src/ui/gui/icons/16x16/scale.png \
$(top_srcdir)/src/ui/gui/icons/16x16/string.png \
$(top_srcdir)/src/ui/gui/icons/16x16/date-scale.png \
- $(top_srcdir)/src/ui/gui/icons/splash.png
+ $(top_srcdir)/src/ui/gui/icons/splash.png
src_ui_gui_psppire_SOURCES = \
src/ui/gui/psppire-buttonbox.c \
src/ui/gui/psppire-hbuttonbox.c \
src/ui/gui/psppire-vbuttonbox.c \
+ src/ui/gui/psppire-scanf.c \
+ src/ui/gui/psppire-scanf.h \
src/ui/gui/psppire-acr.c \
+ src/ui/gui/autorecode-dialog.c \
+ src/ui/gui/autorecode-dialog.h \
src/ui/gui/aggregate-dialog.c \
src/ui/gui/aggregate-dialog.h \
src/ui/gui/binomial-dialog.c \
src/ui/gui/chi-square-dialog.h \
src/ui/gui/correlation-dialog.c \
src/ui/gui/correlation-dialog.h \
+ src/ui/gui/count-dialog.c \
+ src/ui/gui/count-dialog.h \
src/ui/gui/crosstabs-dialog.c \
src/ui/gui/crosstabs-dialog.h \
src/ui/gui/customentry.c \
src/ui/gui/dialog-common.h \
src/ui/gui/dict-display.h \
src/ui/gui/dict-display.c \
+ src/ui/gui/entry-dialog.c \
+ src/ui/gui/entry-dialog.h \
src/ui/gui/examine-dialog.c \
src/ui/gui/examine-dialog.h \
src/ui/gui/executor.c \
src/ui/gui/help-menu.c \
src/ui/gui/help-menu.h \
src/ui/gui/helper.h \
+ src/ui/gui/k-related-dialog.c \
+ src/ui/gui/k-related-dialog.h \
+ src/ui/gui/k-means-dialog.c \
+ src/ui/gui/k-means-dialog.h \
+ src/ui/gui/ks-one-sample-dialog.c \
+ src/ui/gui/ks-one-sample-dialog.h \
src/ui/gui/main.c \
src/ui/gui/missing-val-dialog.c \
src/ui/gui/missing-val-dialog.h \
src/ui/gui/oneway-anova-dialog.c \
src/ui/gui/oneway-anova-dialog.h \
+ src/ui/gui/paired-dialog.c \
+ src/ui/gui/paired-dialog.h \
src/ui/gui/psppire.c \
src/ui/gui/psppire.h \
src/ui/gui/psppire-acr.h \
src/ui/gui/psppire-dict.h \
src/ui/gui/psppire-dictview.c \
src/ui/gui/psppire-dictview.h \
+ src/ui/gui/psppire-encoding-selector.c \
+ src/ui/gui/psppire-encoding-selector.h \
src/ui/gui/psppire-hbuttonbox.h \
src/ui/gui/psppire-keypad.h \
+ src/ui/gui/psppire-lex-reader.c \
+ src/ui/gui/psppire-lex-reader.h \
src/ui/gui/psppire-output-window.c \
src/ui/gui/psppire-output-window.h \
src/ui/gui/psppire-var-view.c \
src/ui/gui/psppire-select-dest.h \
src/ui/gui/psppire-syntax-window.c \
src/ui/gui/psppire-syntax-window.h \
+ src/ui/gui/psppire-val-chooser.c \
+ src/ui/gui/psppire-val-chooser.h \
src/ui/gui/psppire-var-ptr.c \
src/ui/gui/psppire-var-ptr.h \
src/ui/gui/psppire-var-sheet.c \
src/ui/gui/reliability-dialog.h \
src/ui/gui/roc-dialog.c \
src/ui/gui/roc-dialog.h \
+ src/ui/gui/runs-dialog.c \
+ src/ui/gui/runs-dialog.h \
src/ui/gui/select-cases-dialog.c \
src/ui/gui/select-cases-dialog.h \
src/ui/gui/sort-cases-dialog.c \
src/ui/gui/sort-cases-dialog.h \
src/ui/gui/split-file-dialog.c \
src/ui/gui/split-file-dialog.h \
- src/ui/gui/syntax-editor-source.c \
- src/ui/gui/syntax-editor-source.h \
src/ui/gui/text-data-import-dialog.c \
src/ui/gui/text-data-import-dialog.h \
src/ui/gui/transpose-dialog.c \
src/ui/gui/t-test-options.h \
src/ui/gui/t-test-paired-samples.c \
src/ui/gui/t-test-paired-samples.h \
+ src/ui/gui/npar-two-sample-related.c \
+ src/ui/gui/npar-two-sample-related.h \
+ src/ui/gui/univariate-dialog.c \
+ src/ui/gui/univariate-dialog.h \
src/ui/gui/val-labs-dialog.c \
src/ui/gui/val-labs-dialog.h \
src/ui/gui/var-display.c \
src/ui/gui/psppire-marshal.c \
src/ui/gui/psppire-marshal.h
-
yelp-check:
@if ! yelp --version > /dev/null 2>&1 ; then \
echo ; \
#ensure the installcheck passes even if there is no X server available
installcheck-local:
DISPLAY=/invalid/port $(MAKE) $(AM_MAKEFLAGS) installcheck-binPROGRAMS
+
+# <gtk/gtk.h> wrapper
+src_ui_gui_psppire_CPPFLAGS = $(AM_CPPFLAGS) -Isrc/ui/gui/include
+BUILT_SOURCES += src/ui/gui/include/gtk/gtk.h
+src/ui/gui/include/gtk/gtk.h: src/ui/gui/include/gtk/gtk.in.h
+ @$(MKDIR_P) src/ui/gui/include/gtk
+ $(AM_V_GEN)rm -f $@-t $@ && \
+ { echo '/* DO NOT EDIT! GENERATED AUTOMATICALLY! */'; \
+ sed -e 's|@''INCLUDE_NEXT''@|$(INCLUDE_NEXT)|g' \
+ -e 's|@''PRAGMA_SYSTEM_HEADER''@|@PRAGMA_SYSTEM_HEADER@|g' \
+ -e 's|@''PRAGMA_COLUMNS''@|@PRAGMA_COLUMNS@|g' \
+ -e 's|@''NEXT_GTK_GTK_H''@|$(NEXT_GTK_GTK_H)|g' \
+ < $(srcdir)/src/ui/gui/include/gtk/gtk.in.h; \
+ } > $@-t && \
+ mv $@-t $@
+CLEANFILES += src/ui/gui/include/gtk/gtk.h
+EXTRA_DIST += src/ui/gui/include/gtk/gtk.in.h