]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/pictures/GNUmakefile
7490fd6a5974b6be7d154a95209df4d5abf99241
[lilypond.git] / Documentation / pictures / GNUmakefile
1 depth = ../..
2
3 STEPMAKE_TEMPLATES=documentation
4 XPM_FILES=$(wildcard *.xpm)
5 OUTGIF_FILES = $(addprefix $(outdir)/,$(XPM_FILES:.xpm=.gif))
6 OUTPNG_FILES = $(addprefix $(outdir)/,$(XPM_FILES:.xpm=.png))
7
8 EXTRA_DIST_FILES= $(XPM_FILES)
9
10 ifeq ($(PLATFORM_WINDOWS),yes)
11 OUT_DIST_FILES = $(icon) # $(package-icon)
12
13 icon = $(outdir)/lilypond.ico
14 ICON_SIZES=48 32 16
15
16 #$(outdir)/lilypond.ico: platte-lucht-kikker-ly-48.xpm
17
18 $(outdir)/%.ico: $(ICON_SIZES:%=$(outdir)/\%-%.png) $(ICON_SIZES:%=$(outdir)/\%-%-8.png)
19         #convert +adjoin $^ $@
20         icotool --output=$@ --create $^
21
22 # cancel default rule that breaks transparency
23 $(outdir)/%.png: %.xpm
24
25 $(outdir)/%-48.png: %-48.xpm
26         convert -sample 48 -depth 24 $< $@
27                    
28 $(outdir)/%-32.png: %-48.xpm
29         convert -depth 24 -sample 32 $< $@
30
31 $(outdir)/%-16.png: %-48.xpm
32         convert -depth 24 -sample 16 $< $@
33
34 $(outdir)/%-8.png: $(outdir)/%.png
35         convert -depth 8 $< $@
36 endif # PLATFORM_WINDOWS
37
38 include $(depth)/make/stepmake.make
39
40 default: $(icon)
41 local-dist: $(icon) # $(package-icon)
42 xgifs: $(OUTGIF_FILES)
43 pngs: $(OUTPNG_FILES)
44 local-WWW: $(OUTPNG_FILES)
45