]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/pictures/GNUmakefile
Build: more EXTRA_DIST for GUB happiness.
[lilypond.git] / Documentation / pictures / GNUmakefile
1 depth = ../..
2
3 BITMAP_IMAGES = $(call src-wildcard,*.png) $(call src-wildcard,*.jpg)
4 EPS_ILLUSTRATIONS = $(call src-wildcard,*.eps)
5 SVG_FILES = $(call src-wildcard,*.svg)
6 PDF_DIR = $(call src-wildcard,pdf/*.pdf)
7
8 EXTRA_DIST_FILES = $(BITMAP_IMAGES) $(EPS_ILLUSTRATIONS) $(SVG_FILES) \
9   $(PDF_DIR)
10
11 OUT_PDF_IMAGES = $(EPS_ILLUSTRATIONS:%.eps=$(outdir)/%.pdf)
12 OUT_BITMAP_IMAGES = $(BITMAP_IMAGES:%=$(outdir)/%)
13 OUT_BITMAP_IMAGES += $(EPS_ILLUSTRATIONS:%.pdf=$(outdir)/%.png)
14
15 STEPMAKE_TEMPLATES = documentation
16
17 include $(depth)/make/stepmake.make
18
19 ###########
20 ### Targets
21
22 default:
23
24 ifeq ($(out),www)
25 local-WWW-1: $(OUT_BITMAP_IMAGES) $(OUT_PDF_IMAGES)
26 endif
27
28 #########
29 ### Rules
30
31 $(outdir)/%-flat-gray.png: %-flat-gray.png
32         convert -depth 8 -geometry 50x50% $< $@
33
34 $(outdir)/%-flat-bw.png: %-flat-bw.png
35         convert -depth 8 -geometry 50x50% $< $@
36
37 $(outdir)/%.png: %.png
38         ln -f $< $@
39
40 $(outdir)/%.jpg: %.jpg
41         ln -f $< $@
42
43 $(outdir)/%.png: %.eps
44         gs -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=$@ -sDEVICE=png16m -dEPSCrop -dNOPAUSE -f $< -c quit
45
46 $(outdir)/%.pdf: %.eps
47         gs -dAutoRotatePages=/None -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@ -dEPSCrop -c .setpdfwrite -f $<
48