Made joystick support optional
[dasher.git] / Data / Makefile.am
blob89d47fd5d2ac2faba6f786cf8dd4d62b3fd6fd5e
1 SUBDIRS =  Translations system.rc Help
3 desktopdir = $(datadir)/applications
4 desktop_in_files = dasher.desktop.in
5 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
6 @INTLTOOL_DESKTOP_RULE@
8 appicondir = $(datadir)/icons/hicolor/48x48/apps
9 appicon_DATA = dasher.png
10 svgicondir = $(datadir)/icons/hicolor/scalable/apps
11 svgicon_DATA = dasher.svg
13 gtk_update_icon_cache = gtk-update-icon-cache -f -t $(datadir)/icons/hicolor
15 if GCONF_SCHEMAS_INSTALL
16 schemasdir = $(GCONF_SCHEMA_FILE_DIR)
17 schemas_DATA = dasher.schemas
19 install-data-local: install-schemas
21 # A note on what happens here, as it's a custome step. The GConf
22 # schema is generated directely from the data structures in the
23 # SettingsStore and AppSettings objects, so they stay in sync. This is
24 # done by building generate-schema, a small, non-installed program in
25 # Src/Gtk2/. At install time this gets run to build the schema file,
26 # which is then moved installed in the usual way. None of this happens
27 # if configure is told not to install schemas.
29 dasher.schemas:
30         echo -n "Generating schema ... "; \
31         ../Src/Gtk2/generate-schema > dasher.schemas; \
32         echo "done.";
34 install-schemas: dasher.schemas
35         GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
36         gconftool-2 --makefile-install-rule dasher.schemas
37 else
38 install-data-local:
39 endif
42 install-data-hook:
43         @-if test -z "$(DESTDIR)"; then \
44                 echo "Updating Gtk icon cache."; \
45                 $(gtk_update_icon_cache); \
46         else \
47                 echo "*** Icon cache not updated.  After install, run this:"; \
48                 echo "***   $(gtk_update_icon_cache)"; \
49         fi
51 EXTRA_DIST = dasher.desktop dasher.png dasher.svg
53 DISTCLEANFILES = dasher.schemas