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