lesstif: Remove errornous & operator in free () call
[geda-pcb/gde.git] / data / Makefile.am
blob13f519e44ab23b250bf3784624839f36931b123e
1 theme=hicolor
2 xdgdatadir=@XDGDATADIR@
3 themedir=$(xdgdatadir)/icons/$(theme)
5 app_icon = pcb
7 mime_icons = \
8         application-x-pcb-layout \
9         application-x-pcb-footprint \
10         application-x-pcb-netlist \
11         application-x-gerber \
12         application-x-excellon
14 app_icon_files = \
15         $(app_icon:%=%-48.png) \
16         $(app_icon:%=%.svg)
17 #       $(app_icon:%=%-16.png)
18 #       $(app_icon:%=%-22.png)
19 #       $(app_icon:%=%-24.png)
20 #       $(app_icon:%=%-32.png)
22 mime_icon_files = \
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) \
28         $(mime_icons:%=%.svg)
30 mime_icon_sources = \
31         $(mime_icons:%=%-16.svg) \
32         $(mime_icons:%=%-22.svg) \
33         $(mime_icons:%=%-32.svg) \
34         $(mime_icons:%=%-48.svg)
36 theme_icons = \
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)
54 @INTLTOOL_XML_RULE@
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 \
64         x-gerber.desktop.in \
65         x-excellon.desktop.in
66 application_DATA = $(application_in_files:.desktop.in=.desktop)
68 @INTLTOOL_DESKTOP_RULE@
70 install_icon_exec = \
71         $(SETENV) GTK_UPDATE_ICON_CACHE_BIN="@GTK_UPDATE_ICON_CACHE_BIN@" \
72         $(SHELL) $(top_srcdir)/icon-theme-installer \
73         -t $(theme) \
74         -s $(srcdir) \
75         -d "x$(DESTDIR)" \
76         -b $(themedir) \
77         -m "$(mkinstalldirs)" \
78         -x "$(INSTALL_DATA)"
80 install-data-local:
81         $(install_icon_exec) -i $(theme_icons)
83 install-data-hook:
84 if ENABLE_UPDATE_MIME_DATABASE
85         $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(mimedir)"
86 endif
87 if ENABLE_UPDATE_DESKTOP_DATABASE
88         $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"
89 endif
91 uninstall-hook:
92 if ENABLE_UPDATE_MIME_DATABASE
93         $(UPDATE_MIME_DATABASE) "$(DESTDIR)$(mimedir)"
94 endif
95 if ENABLE_UPDATE_DESKTOP_DATABASE
96         $(UPDATE_DESKTOP_DATABASE) "$(DESTDIR)$(desktopdir)"
97 endif
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) \
105              $(app_icon_files) \
106              $(desktop_in_files) $(desktop_DATA) \
107              regen_files pcb_icon.ico