refdes_renum: warn of possible number clash with non-conforming values
[geda-gaf/whiteaudio.git] / libgeda / data / Makefile.am
blob5f2b0009e145c016e779ea2db37649c8317d1f79
1 theme=hicolor
2 xdgdatadir=@XDGDATADIR@
3 themedir=$(xdgdatadir)/icons/$(theme)
5 mime_icons = \
6         application-x-geda-gsch2pcb-project \
7         application-x-geda-schematic        \
8         application-x-geda-symbol
10 mime_icon_files = \
11         $(mime_icons:%=%-16.png) \
12         $(mime_icons:%=%-22.png) \
13         $(mime_icons:%=%-24.png) \
14         $(mime_icons:%=%-32.png) \
15         $(mime_icons:%=%-48.png) \
16         $(mime_icons:%=%.svg)
18 mime_icon_sources = \
19         $(mime_icons:%=%-16.svg) \
20         $(mime_icons:%=%-22.svg) \
21         $(mime_icons:%=%-32.svg) \
22         $(mime_icons:%=%-48.svg)
24 theme_icons = \
25         $(mime_icon_files:%=mimetypes,%)
27 mimedir = $(xdgdatadir)/mime
28 xmldir = $(mimedir)/packages
30 xml_in_files = libgeda.xml.in
31 xml_DATA = $(xml_in_files:.xml.in=.xml)
33 application_in_files = \
34         x-geda-gsch2pcb-project.desktop.in \
35         x-geda-schematic.desktop.in \
36         x-geda-symbol.desktop.in
38 if ENABLE_KDE_DESKTOP_DATA
39 kdedatadir=@KDEDATADIR@
40 mimelnkdir = $(kdedatadir)/mimelnk
41 applicationdir = $(mimelnkdir)/application
42 application_DATA = $(application_in_files:.desktop.in=.desktop)
43 endif ENABLE_KDE_DESKTOP_DATA
45 install_icon_exec = \
46         $(ICON_THEME_INSTALLER) \
47         -t $(theme) \
48         -s $(srcdir) \
49         -d "x$(DESTDIR)" \
50         -b $(themedir) \
51         -m "$(mkinstalldirs)" \
52         -x "$(INSTALL_DATA)"
54 DOMAIN=$(LIBGEDA_GETTEXT_DOMAIN)
56 @DESKTOP_I18N_LANGS_RULE@
57 @DESKTOP_I18N_DESKTOP_RULE@
58 @DESKTOP_I18N_XML_RULE@
60 install-data-local:
61         $(install_icon_exec) -i $(theme_icons)
63 install-data-hook:
64 if ENABLE_UPDATE_XDG_DATABASE
65         $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(mimedir)"
66 endif
68 uninstall-hook:
69 if ENABLE_UPDATE_XDG_DATABASE
70         $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(mimedir)"
71 endif
72         $(install_icon_exec) -u $(theme_icons)
74 MAINTAINERCLEANFILES = *.log core FILE *~ Makefile.in
75 DISTCLEANFILES = $(xml_DATA) $(application_DATA)
76 EXTRA_DIST = $(mime_icon_files) $(mime_icon_sources) \
77              $(xml_in_files) $(application_in_files)