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 \
|
2005-08-18 11:28:28 +05:30
|
|
|
somerights20.gif \
|
2004-07-29 05:08:34 +05:30
|
|
|
papersize.xml \
|
2006-03-05 04:23:46 +05:30
|
|
|
system_filters.xml \
|
2005-08-18 11:28:28 +05:30
|
|
|
tips.xml\
|
|
|
|
main1.css\
|
|
|
|
main2.css\
|
|
|
|
main3.css\
|
|
|
|
main4.css\
|
2005-12-06 12:08:09 +05:30
|
|
|
main5.css\
|
|
|
|
main6.css\
|
|
|
|
document.png
|
2004-12-06 09:54:12 +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-08-18 11:28:28 +05:30
|
|
|
$(GCONFTOOL) --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-08-18 11:28:28 +05:30
|
|
|
$(GCONFTOOL) --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
|
|
|
|
|
2006-03-16 05:28:23 +05:30
|
|
|
# Rules for files with translatable strings
|
|
|
|
# These are taken care of by the intltool
|
|
|
|
desktopdir = $(datadir)/applications
|
|
|
|
desktop_in_files = gramps.desktop.in
|
|
|
|
desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
|
|
|
|
@INTLTOOL_DESKTOP_RULE@
|
|
|
|
|
|
|
|
keys_in_files = gramps.keys.in
|
|
|
|
keys_files = $(keys_in_files:.keys.in=.keys)
|
|
|
|
@INTLTOOL_KEYS_RULE@
|
|
|
|
|
|
|
|
xml_in_files = gramps.xml.in tips.xml.in
|
|
|
|
xml_files = $(xml_in_files:.xml.in=.xml)
|
|
|
|
@INTLTOOL_XML_RULE@
|
|
|
|
|
|
|
|
schemasdir = $(GCONF_SCHEMA_FILE_DIR)
|
|
|
|
schemas_in_files = gramps.schemas.in
|
|
|
|
schemas_DATA = $(schemas_in_files:.schemas.in=.schemas)
|
|
|
|
@INTLTOOL_SCHEMAS_RULE@
|
|
|
|
|
|
|
|
applicationsdir = $(datadir)/application-registry
|
|
|
|
applications_DATA = gramps.applications
|
|
|
|
|
|
|
|
mimedir = $(datadir)/mime-info
|
|
|
|
mime_DATA = $(keys_files) gramps.mime
|
|
|
|
|
|
|
|
xmldir = $(SHARED_MIME_DIR)/packages
|
|
|
|
xml_DATA = $(xml_files)
|
|
|
|
|
|
|
|
pngdir = $(datadir)/icons/gnome/48x48/mimetypes
|
|
|
|
png_DATA = \
|
|
|
|
gnome-mime-application-x-gramps.png \
|
|
|
|
gnome-mime-application-x-gedcom.png \
|
|
|
|
gnome-mime-application-x-gramps-package.png \
|
|
|
|
gnome-mime-application-x-gramps-xml.png \
|
|
|
|
gnome-mime-application-x-geneweb.png
|
|
|
|
|
|
|
|
EXTRA_DIST = \
|
|
|
|
$(png_DATA) \
|
|
|
|
gramps.svg \
|
|
|
|
$(applications_DATA) \
|
|
|
|
$(keys_in_files) \
|
|
|
|
$(desktop_in_files) \
|
|
|
|
$(schemas_in_files) \
|
|
|
|
$(mime_DATA) \
|
|
|
|
$(xml_DATA) \
|
|
|
|
$(desktop_DATA) \
|
|
|
|
$(schemas_DATA) \
|
|
|
|
$(xml_in_files)
|
|
|
|
|
|
|
|
CLEANFILES = \
|
|
|
|
$(desktop_DATA) \
|
|
|
|
$(keys_files) \
|
|
|
|
$(xml_files) \
|
|
|
|
$(schemas_DATA)
|
|
|
|
|
|
|
|
install-data-hook:
|
2005-05-11 19:34:47 +05:30
|
|
|
$(SHARED_MIME_INSTALLATION)
|
|
|
|
$(GCONF_SCHEMAS_INSTALLATION)
|
2004-05-27 09:59:43 +05:30
|
|
|
|
|
|
|
uninstall-local:
|
2005-05-11 19:34:47 +05:30
|
|
|
$(GCONF_SCHEMAS_UNINSTALLATION)
|
2006-03-16 05:28:23 +05:30
|
|
|
|
|
|
|
uninstall-hook:
|
2005-05-24 18:38:06 +05:30
|
|
|
$(SHARED_MIME_UNINSTALLATION)
|