1 ## Process this file with automake to produce Makefile.in
34 # These ".rcdata" files are PNGs, but we end up with a loop of implicit rules
35 # if we call them ".png", and the .rc file doesn't care about the extension.
36 rcdata_files = $(xpm_files:.xpm=.rcdata)
38 aven-icons.rc: Makefile.am
39 perl -e 'for (@ARGV) { /(.*)\.rcdata$$/ and $$1 ne "aven" and print "$$1 RCDATA $$_\n" }' \
40 $(rcdata_files) > aven-icons.rc
43 3d.svg err.svg plt.svg pos.svg svx.svg \
44 3d.png err.png plt.png pos.png svx.png
46 svgicondir = $(datadir)/icons/hicolor/scalable
47 x32icondir = $(datadir)/icons/hicolor/32x32
50 $(MKDIR_P) "$(DESTDIR)$(svgicondir)/mimetypes"
51 $(MKDIR_P) "$(DESTDIR)$(x32icondir)/mimetypes"
52 for f in 3d err pos svx ; do \
53 $(INSTALL_DATA) "$(srcdir)/$$f.svg" "$(DESTDIR)$(svgicondir)/mimetypes/application-x-survex-$$f.svg" ; \
54 $(INSTALL_DATA) "$(srcdir)/$$f.png" "$(DESTDIR)$(x32icondir)/mimetypes/application-x-survex-$$f.png" ; \
56 $(INSTALL_DATA) "$(srcdir)/plt.svg" "$(DESTDIR)$(svgicondir)/mimetypes/application-x-compass-plot.svg"
57 $(INSTALL_DATA) "$(srcdir)/plt.png" "$(DESTDIR)$(x32icondir)/mimetypes/application-x-compass-plot.png"
60 for f in 3d err pos svx ; do \
61 rm -f $(DESTDIR)$(svgicondir)/mimetypes/application-x-survex-$$f.svg ; \
62 rm -f $(DESTDIR)$(x32icondir)/mimetypes/application-x-survex-$$f.png ; \
64 rm -f $(DESTDIR)$(svgicondir)/mimetypes/application-x-compass-plot.svg
65 rm -f $(DESTDIR)$(x32icondir)/mimetypes/application-x-compass-plot.png
67 # tubesprefs.png stationsprefs.png indicatorprefs.png\
68 # windowprefs.png gridprefs.png unitsprefs.png \
69 # legsprefs.png ctlprefs.png pres-restart.png pres-create.png\
70 # pres-record.png pres-finish.png svxedit.png
72 appicondir = $(datadir)/icons/hicolor/scalable/apps
73 dist_appicon_DATA = aven.svg
75 Aven.iconset.zip: aven.svg
76 $(SHELL) $(srcdir)/svg2iconsetzip aven.svg Aven.iconset.zip
78 SUFFIXES = .ico .png .svg .iconset.zip .xpm
81 $(SHELL) $(srcdir)/svg2iconsetzip $< $@
84 $(SHELL) $(srcdir)/png2winicon $< $@
87 $(SHELL) $(srcdir)/xpm2winicon $< $@
90 $(SHELL) $(srcdir)/xpm2png $< $@
92 iconsets = Aven.iconset.zip\
93 3d.iconset.zip err.iconset.zip plt.iconset.zip pos.iconset.zip\
96 MAINTAINERCLEANFILES = $(iconsets)
98 BUILT_SOURCES = aven-icons.rc $(rcdata_files)
100 EXTRA_DIST += png2winicon png2iconsetzip svg2iconsetzip\
105 3d.ico err.ico plt.ico pos.ico svx.ico\