2 xdgdatadir=@XDGDATADIR@
3 themedir=$(xdgdatadir)/icons/$(theme)
8 application-x-pcb-layout \
9 application-x-pcb-footprint \
10 application-x-pcb-netlist \
11 application-x-gerber \
12 application-x-excellon
15 $(app_icon:%=%-48.png) \
17 # $(app_icon:%=%-16.png)
18 # $(app_icon:%=%-22.png)
19 # $(app_icon:%=%-24.png)
20 # $(app_icon:%=%-32.png)
23 $(mime_icons:%=%-16.png) \
24 $(mime_icons:%=%-22.png) \
25 $(mime_icons:%=%-24.png) \
26 $(mime_icons:%=%-32.png) \
27 $(mime_icons:%=%-48.png) \
31 $(mime_icons:%=%-16.svg) \
32 $(mime_icons:%=%-22.svg) \
33 $(mime_icons:%=%-32.svg) \
34 $(mime_icons:%=%-48.svg)
37 $(mime_icon_files:%=mimetypes,%) \
38 $(app_icon_files:%=apps,%)
41 desktopdir=$(xdgdatadir)/applications
42 desktop_in_files = pcb.desktop.in
43 desktop_DATA = $(desktop_in_files:.desktop.in=.desktop)
45 @INTLTOOL_DESKTOP_RULE@
48 mimedir = $(xdgdatadir)/mime
49 xmldir = $(mimedir)/packages
51 xml_in_files = pcb.xml.in
52 xml_DATA = $(xml_in_files:.xml.in=.xml)
56 kdedatadir=@KDEDATADIR@
57 mimelnkdir = $(kdedatadir)/mimelnk
58 applicationdir = $(mimelnkdir)/application
60 application_in_files = \
61 x-pcb-layout.desktop.in \
62 x-pcb-footprint.desktop.in \
63 x-pcb-netlist.desktop.in \
66 application_DATA = $(application_in_files:.desktop.in=.desktop)
68 @INTLTOOL_DESKTOP_RULE@
71 $(SETENV) GTK_UPDATE_ICON_CACHE_BIN="@GTK_UPDATE_ICON_CACHE_BIN@" \
72 $(SHELL) $(top_srcdir)/icon-theme-installer \
77 -m "$(mkinstalldirs)" \
81 $(install_icon_exec) -i $(theme_icons)
84 if ENABLE_UPDATE_MIME_DATABASE
85 $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(mimedir)"
87 if ENABLE_UPDATE_DESKTOP_DATABASE
88 $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"
92 if ENABLE_UPDATE_MIME_DATABASE
93 $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(mimedir)"
95 if ENABLE_UPDATE_DESKTOP_DATABASE
96 $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"
98 $(install_icon_exec) -u $(theme_icons)
100 MAINTAINERCLEANFILES = *.log core FILE *~ Makefile.in
101 DISTCLEANFILES = $(xml_DATA) $(application_DATA) $(desktop_DATA)
102 EXTRA_DIST = $(mime_icon_files) $(mime_icon_sources) \
103 $(xml_in_files) $(xml_DATA) \
104 $(application_in_files) \
106 $(desktop_in_files) $(desktop_DATA) \
107 regen_files pcb_icon.ico