1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
|
SUBDIRS = training alphabets colours control GUI Help
desktopdir = $(datadir)/applications
desktop_in_files = dasher.desktop.in
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
if USE_INTLTOOL
@INTLTOOL_DESKTOP_RULE@
else
dasher.desktop: dasher.desktop.in
cp dasher.desktop.in dasher.desktop
endif
icondir = $(datadir)/icons/hicolor/48x48/apps
icon_DATA = dasher.png
svgicondir = $(datadir)/icons/hicolor/scalable/apps
svgicon_DATA = dasher.svg
gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
if USE_GCONF
if GCONF_SCHEMAS_INSTALL
schemasdir = $(GCONF_SCHEMA_FILE_DIR)
schemas_DATA = dasher.schemas
install-data-local: install-schemas
# A note on what happens here, as it's a custome step. The GConf
# schema is generated directely from the data structures in the
# SettingsStore and AppSettings objects, so they stay in sync. This is
# done by building generate-schema, a small, non-installed program in
# Src/Gtk2/. At install time this gets run to build the schema file,
# which is then moved installed in the usual way. None of this happens
# if configure is told not to install schemas.
dasher.schemas: $(top_builddir)/Src/Gtk2/generate-schema
@echo -n "Generating GConf schema ... "; \
$(top_builddir)/Src/Gtk2/generate-schema -c > dasher.schemas; \
echo "done.";
install-schemas: dasher.schemas
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
gconftool-2 --makefile-install-rule dasher.schemas
compile-schemas:
# GCONF_SCHEMAS_INSTALL
endif
# !USE_GCONF
else
if USE_GSETTINGS
schemasdir = $(datadir)/glib-2.0/schemas
schemas_DATA = dasher.gschema.xml
check-local: check-schemas
dasher.gschema.xml: $(top_builddir)/Src/Gtk2/generate-schema
@echo -n "Generating GSettings schema ... "; \
$(top_builddir)/Src/Gtk2/generate-schema -s > dasher.gschema.xml; \
echo "done.";
compile-schemas: dasher.gschema.xml
$(GLIB_COMPILE_SCHEMAS) --allow-any-name $(schemasdir)
check-schemas: dasher.gschema.xml
$(GLIB_COMPILE_SCHEMAS) --allow-any-name --dry-run --schema-file=dasher.gschema.xml
else
compile-schemas:
endif
endif
install-data-hook: update-icon-cache compile-schemas
uninstall-hook: update-icon-cache
update-icon-cache:
@-if test -z "$(DESTDIR)"; then \
echo "Updating Gtk icon cache."; \
$(gtk_update_icon_cache); \
else \
echo "*** Icon cache not updated. After (un)install, run this:"; \
echo "*** $(gtk_update_icon_cache)"; \
fi
EXTRA_DIST = \
dasher.desktop \
$(icon_DATA) \
$(svgicon_DATA)
CLEANFILES = dasher.schemas dasher.gschema.xml
|