2002-10-20 19:55:16 +05:30
|
|
|
# This is the src/data level Makefile
|
2005-05-24 18:38:06 +05:30
|
|
|
# $Id$
|
|
|
|
#
|
2002-10-20 19:55:16 +05:30
|
|
|
SUBDIRS = templates
|
2003-05-21 06:00:02 +05:30
|
|
|
pkgdatadir = $(datadir)/@PACKAGE@/data
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2004-07-29 05:08:34 +05:30
|
|
|
dist_pkgdata_DATA = \
|
|
|
|
gedcom.xml \
|
|
|
|
papersize.xml \
|
2004-12-06 09:54:12 +05:30
|
|
|
tips.xml
|
|
|
|
|
2004-12-08 03:08:30 +05:30
|
|
|
EXTRA_DIST = \
|
2004-12-06 09:54:12 +05:30
|
|
|
gramps.desktop \
|
2004-07-29 05:08:34 +05:30
|
|
|
gnome-mime-application-x-gramps.png \
|
|
|
|
gnome-mime-application-x-gedcom.png \
|
|
|
|
gnome-mime-application-x-gramps-package.png \
|
2004-08-01 09:51:31 +05:30
|
|
|
gnome-mime-application-x-gramps-xml.png \
|
2004-09-25 04:12:21 +05:30
|
|
|
gnome-mime-application-x-geneweb.png \
|
2004-07-29 05:08:34 +05:30
|
|
|
gramps.svg \
|
2004-12-06 09:54:12 +05:30
|
|
|
gramps.xml \
|
|
|
|
gramps.applications \
|
2004-07-29 05:08:34 +05:30
|
|
|
gramps.keys \
|
2004-08-16 03:01:28 +05:30
|
|
|
gramps.mime \
|
|
|
|
gramps.schemas
|
2002-10-20 19:55:16 +05:30
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
# Conditionally enable/disable gconf schemas or mime types,
|
|
|
|
# or disable both in a packager mode
|
|
|
|
GCONF_SCHEMAS_INSTALLATION =
|
|
|
|
GCONF_SCHEMAS_UNINSTALLATION =
|
|
|
|
SHARED_MIME_INSTALLATION =
|
|
|
|
SHARED_MIME_UNINSTALLATION =
|
2004-07-14 10:09:05 +05:30
|
|
|
|
2005-05-11 19:34:47 +05:30
|
|
|
if !PACKAGER_MODE
|
|
|
|
if GCONF_SCHEMAS_INSTALL
|
|
|
|
GCONF_SCHEMAS_INSTALLATION += \
|
|
|
|
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
|
2005-05-24 18:38:06 +05:30
|
|
|
gconftool-2 --makefile-install-rule $(DESTDIR)$(GCONF_SCHEMA_FILE_DIR)/gramps.schemas ;\
|
2005-05-11 19:34:47 +05:30
|
|
|
pkill gconfd ; echo Restarting gconfd
|
|
|
|
|
|
|
|
GCONF_SCHEMAS_UNINSTALLATION += \
|
|
|
|
GCONF_CONFIG_SOURCE=$(GCONF_SCHEMA_CONFIG_SOURCE) \
|
2005-05-24 18:38:06 +05:30
|
|
|
gconftool-2 --makefile-uninstall-rule $(DESTDIR)$(GCONF_SCHEMA_FILE_DIR)/gramps.schemas
|
2005-05-11 19:34:47 +05:30
|
|
|
endif
|
|
|
|
if SHARED_MIME_INSTALL
|
|
|
|
SHARED_MIME_INSTALLATION += \
|
|
|
|
update-mime-database $(DESTDIR)$(SHARED_MIME_DIR)
|
|
|
|
SHARED_MIME_UNINSTALLATION += \
|
|
|
|
update-mime-database $(DESTDIR)$(SHARED_MIME_DIR)
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
install-data-local:
|
2004-08-16 15:02:07 +05:30
|
|
|
$(INSTALL) -d $(DESTDIR)$(prefix)/share/applications
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/src/data/gramps.desktop $(DESTDIR)$(prefix)/share/applications
|
2004-05-27 09:59:43 +05:30
|
|
|
$(INSTALL) -d $(DESTDIR)$(prefix)/share/icons/gnome/48x48/mimetypes/
|
2004-08-16 15:02:07 +05:30
|
|
|
$(INSTALL_DATA) $(top_srcdir)/src/data/gnome-mime-application-x-*.png $(DESTDIR)$(prefix)/share/icons/gnome/48x48/mimetypes/
|
2004-05-28 09:34:04 +05:30
|
|
|
$(INSTALL) -d $(DESTDIR)$(prefix)/share/application-registry
|
2004-08-16 15:02:07 +05:30
|
|
|
$(INSTALL_DATA) $(top_srcdir)/src/data/gramps.applications $(DESTDIR)$(prefix)/share/application-registry
|
2004-05-28 09:34:04 +05:30
|
|
|
$(INSTALL) -d $(DESTDIR)$(prefix)/share/mime-info
|
2004-08-16 15:02:07 +05:30
|
|
|
$(INSTALL_DATA) $(top_srcdir)/src/data/gramps.keys $(DESTDIR)$(prefix)/share/mime-info
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/src/data/gramps.mime $(DESTDIR)$(prefix)/share/mime-info
|
2005-05-24 18:38:06 +05:30
|
|
|
$(INSTALL) -d $(DESTDIR)$(SHARED_MIME_DIR)/packages
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/src/data/gramps.xml $(DESTDIR)$(SHARED_MIME_DIR)/packages
|
|
|
|
$(INSTALL) -d $(DESTDIR)$(GCONF_SCHEMA_FILE_DIR)
|
|
|
|
$(INSTALL_DATA) $(top_srcdir)/src/data/gramps.schemas $(DESTDIR)$(GCONF_SCHEMA_FILE_DIR)
|
2005-05-11 19:34:47 +05:30
|
|
|
$(SHARED_MIME_INSTALLATION)
|
|
|
|
$(GCONF_SCHEMAS_INSTALLATION)
|
2004-05-27 09:59:43 +05:30
|
|
|
|
|
|
|
uninstall-local:
|
2004-08-16 15:02:07 +05:30
|
|
|
-rm $(DESTDIR)$(prefix)/share/applications/gramps.desktop
|
2004-07-29 05:08:34 +05:30
|
|
|
-rm $(DESTDIR)$(prefix)/share/icons/gnome/48x48/mimetypes/gnome-mime-application-x-*.png
|
2004-05-28 09:34:04 +05:30
|
|
|
-rm $(DESTDIR)$(prefix)/share/mime-info/gramps.keys
|
|
|
|
-rm $(DESTDIR)$(prefix)/share/mime-info/gramps.mime
|
2004-07-29 05:08:34 +05:30
|
|
|
-rm $(DESTDIR)$(prefix)/share/application-registry/gramps.applications
|
2005-05-11 19:34:47 +05:30
|
|
|
$(GCONF_SCHEMAS_UNINSTALLATION)
|
2005-05-24 18:38:06 +05:30
|
|
|
-rm $(DESTDIR)$(GCONF_SCHEMA_FILE_DIR)/gramps.schemas
|
|
|
|
-rm $(DESTDIR)$(SHARED_MIME_DIR)/packages/gramps.xml
|
|
|
|
$(SHARED_MIME_UNINSTALLATION)
|