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