File: Makefile.am

package info (click to toggle)
gramps 3.2.3-4
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 39,460 kB
  • ctags: 15,261
  • sloc: python: 118,558; makefile: 1,942; sh: 1,364; xml: 1,342
file content (83 lines) | stat: -rw-r--r-- 2,106 bytes parent folder | download | duplicates (2)
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
# This is the data level Makefile for gramps
# $Id: Makefile.am 10730 2008-05-16 23:51:36Z rshura $

SUBDIRS = man

# 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@

# Rules for files with translatable strings
# These are taken care of by the intltool
xml_in_files = gramps.xml.in
xml_files = $(xml_in_files:.xml.in=.xml)
@INTLTOOL_XML_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

svgdir = $(datadir)/icons/gnome/scalable/mimetypes
svg_DATA = \
	gnome-mime-application-x-gramps.svg \
	gnome-mime-application-x-gedcom.svg \
	gnome-mime-application-x-gramps-package.svg \
	gnome-mime-application-x-gramps-xml.svg \
	gnome-mime-application-x-geneweb.svg

EXTRA_DIST = \
	$(png_DATA) \
	$(svg_DATA) \
	$(applications_DATA) \
	$(keys_in_files) \
	$(desktop_in_files) \
	$(mime_DATA) \
	$(xml_DATA) \
	$(desktop_DATA) \
	$(xml_in_files)

CLEANFILES = \
	$(desktop_DATA) \
	$(keys_files) \
	$(xml_files)

# Conditionally enable/disable mime types,
# or disable unconditionally if in a packager mode
SHARED_MIME_INSTALLATION =
SHARED_MIME_UNINSTALLATION =

if !PACKAGER_MODE
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-hook:
	$(SHARED_MIME_INSTALLATION)

uninstall-hook:
	$(SHARED_MIME_UNINSTALLATION)