check_PROGRAMS=
bin_PROGRAMS=
DIST_HOOKS =
+INSTALL_DATA_HOOKS =
+UNINSTALL_DATA_HOOKS =
PHONY =
-DIST_HOOKS += generate-changelog
generate-changelog:
if test -d $(top_srcdir)/.git; then \
$(top_srcdir)/gitlog-to-changelog --since=2008-07-27 \
mv $(distdir)/cl-t $(distdir)/ChangeLog; \
fi
+DIST_HOOKS += generate-changelog
+
+
include $(top_srcdir)/lib/automake.mk
include $(top_srcdir)/doc/automake.mk
include $(top_srcdir)/config/automake.mk
include $(top_srcdir)/perl-module/automake.mk
endif
-PHONY += $(DIST_HOOKS)
-dist-hook: $(DIST_HOOKS)
+PHONY += $(DIST_HOOKS) $(INSTALL_DATA_HOOKS) $(UNINSTALL_DATA_HOOKS)
+
.PHONY: $(PHONY)
+
+dist-hook: $(DIST_HOOKS)
+
+install-data-hook: $(INSTALL_DATA_HOOKS)
+
+uninstall-hook: $(UNINSTALL_DATA_HOOKS)
+
+
+
@$(MKDIR_P) doc
@PERL@ $(top_srcdir)/doc/get-commands.pl $(top_srcdir)/src/language/command.def > $@
-# It seems that recent versions of yelp, upon which the gui relies to display the reference
-# manual, are broken. It only works on compressed info files. So we must compress them.
-if WITHGUI
-YELP_CHECK = yelp-check
-else
-YELP_CHECK =
-endif
-install-data-hook:: $(YELP_CHECK)
- for ifile in $(DESTDIR)$(infodir)/pspp.info-[0-9] \
- $(DESTDIR)$(infodir)/pspp.info ; do \
+
+install-info-file:
+ for ifile in $(DESTDIR)$(infodir)/pspp.info-[0-9] $(DESTDIR)$(infodir)/pspp.info ; do \
gzip -f $$ifile ; \
- done
+ done
+
+INSTALL_DATA_HOOKS += install-info-file
+
+uninstall-info-file:
+ $(RM) $(DESTDIR)$(infodir)/pspp.info-[0-9].gz ; \
+ $(RM) $(DESTDIR)$(infodir)/pspp.info.gz ;
-uninstall-hook::
- rm -f $(DESTDIR)$(infodir)/pspp.info-[0-9].gz
- rm -f $(DESTDIR)$(infodir)/pspp.info.gz
+UNINSTALL_DATA_HOOKS += uninstall-info-file
EXTRA_DIST += doc/OChangeLog
CLEANFILES += pspp-dev.dvi
gtk_about_dialog_set_logo (GTK_ABOUT_DIALOG (about), pb);
- gtk_window_set_icon_from_file (GTK_WINDOW (about),
- relocate (PKGDATADIR "/psppicon.png"), 0);
+ gtk_window_set_icon_name (GTK_WINDOW (about), "psppicon");
gtk_about_dialog_set_website (GTK_ABOUT_DIALOG (about),
"http://www.gnu.org/software/pspp");
src_ui_gui_psppiredir = $(pkgdatadir)
+
+themedir = $(DESTDIR)$(datadir)/icons/hicolor
+context = apps
+
+
+install-icons:
+ for size in 16x16 ; do \
+ $(MKDIR_P) $(themedir)/$$size/$(context) ; \
+ $(INSTALL) $(top_srcdir)/src/ui/gui/psppicon.png $(themedir)/$$size/$(context) ; \
+ done
+ gtk-update-icon-cache --ignore-theme-index $(themedir)
+
+INSTALL_DATA_HOOKS += install-icons
+
+uninstall-icons:
+ for size in 16x16 ; do \
+ $(RM) $(themedir)/$$size/$(context)/psppicon.png ; \
+ done
+ gtk-update-icon-cache --ignore-theme-index $(themedir)
+
+UNINSTALL_DATA_HOOKS += uninstall-icons
+
+
nodist_src_ui_gui_psppire_DATA = \
$(top_builddir)/src/ui/gui/crosstabs.ui \
$(top_builddir)/src/ui/gui/descriptives-dialog.ui \
dist_src_ui_gui_psppire_DATA = \
$(top_srcdir)/src/ui/gui/text-data-import.glade \
- $(top_srcdir)/src/ui/gui/psppicon.png \
$(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\
echo ' Yelp is available from the GNOME project. ftp://ftp.gnome.org/pub/gnome/sources/yelp' ; \
echo ; \
fi
+
PHONY += yelp-check
AM_CPPFLAGS += -Isrc
gtk-builder-convert $< $@
EXTRA_DIST += src/ui/gui/OChangeLog\
+ src/ui/gui/psppicon.png \
src/ui/gui/marshaller-list
BUILT_SOURCES += src/ui/gui/psppire-marshal.c src/ui/gui/psppire-marshal.h
gtk_window_set_type_hint (GTK_WINDOW (dialog),
GDK_WINDOW_TYPE_HINT_DIALOG);
+ g_object_set (dialog, "icon-name", "psppicon", NULL);
+
gtk_widget_show_all (dialog->box);
}
{
PsppireDialog *dialog ;
- dialog = g_object_new (psppire_dialog_get_type (), NULL);
+ dialog = g_object_new (psppire_dialog_get_type (),
+ NULL);
return GTK_WIDGET (dialog) ;
}
window->unsaved = FALSE;
g_signal_connect (window, "delete-event", G_CALLBACK (on_delete), window);
+
+ g_object_set (window, "icon-name", "psppicon", NULL);
}
CLEANFILES += *.save pspp.* foo*
-DIST_HOOKS += check-for-export-var-val
check-for-export-var-val:
@if grep -q 'export .*=' $(dist_TESTS) ; then \
echo 'One or more tests contain non-portable "export VAR=val" syntax' ; \
false ; \
fi
+DIST_HOOKS += check-for-export-var-val
+
EXTRA_DIST += tests/OChangeLog