Avoid special "1000" scale entry when exporting
[survex.git] / lib / icons / Makefile.am
blobf6bd8a9cd5aa17ee8a31206066521edc84c50a17
1 ## Process this file with automake to produce Makefile.in
3 xpm_files = \
4         aven.xpm \
5         log.xpm \
6         open.xpm \
7         open_pres.xpm \
8         rotation.xpm \
9         plan.xpm \
10         elevation.xpm \
11         defaults.xpm \
12         names.xpm \
13         crosses.xpm \
14         entrances.xpm \
15         fixed_pts.xpm \
16         exported_pts.xpm \
17         ug_legs.xpm \
18         surface_legs.xpm \
19         tubes.xpm \
20         solid_surface.xpm \
21         pres_frew.xpm \
22         pres_rew.xpm \
23         pres_go_back.xpm \
24         pres_pause.xpm \
25         pres_go.xpm \
26         pres_ff.xpm \
27         pres_fff.xpm \
28         pres_stop.xpm \
29         find.xpm \
30         hideresults.xpm \
31         survey_tree.xpm \
32         pres_tree.xpm
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
42 EXTRA_DIST = \
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
49 install-data-local:
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" ; \
55         done
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"
59 uninstall-local:
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 ; \
63         done
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
80 .svg.iconset.zip:
81         $(SHELL) $(srcdir)/svg2iconsetzip $< $@
83 .png.ico:
84         $(SHELL) $(srcdir)/png2winicon $< $@
86 .xpm.ico:
87         $(SHELL) $(srcdir)/xpm2winicon $< $@
89 .xpm.rcdata:
90         $(SHELL) $(srcdir)/xpm2png $< $@
92 iconsets = Aven.iconset.zip\
93         3d.iconset.zip err.iconset.zip plt.iconset.zip pos.iconset.zip\
94         svx.iconset.zip
96 MAINTAINERCLEANFILES = $(iconsets)
98 BUILT_SOURCES = aven-icons.rc $(rcdata_files)
100 EXTRA_DIST += png2winicon png2iconsetzip svg2iconsetzip\
101         aven-icons.rc\
102         $(xpm_files)\
103         $(rcdata_files)\
104         aven.ico\
105         3d.ico err.ico plt.ico pos.ico svx.ico\
106         $(iconsets)