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