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