X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fpictures%2FGNUmakefile;h=8ae3e463bbe15e7aed5486ded25c7e5a2b2209bf;hb=84675bc536af363543bdae1fa422903a977e1ec8;hp=385043d56141bcabb879e14770563c56b1a17d15;hpb=1a1d2e078682968b5a0a98ecbe2388b93fa2aa44;p=lilypond.git diff --git a/Documentation/pictures/GNUmakefile b/Documentation/pictures/GNUmakefile index 385043d561..8ae3e463bb 100644 --- a/Documentation/pictures/GNUmakefile +++ b/Documentation/pictures/GNUmakefile @@ -1,6 +1,47 @@ depth = ../.. -STEPMAKE_TEMPLATES=documentation +BITMAP_IMAGES = $(call src-wildcard,*.png) $(call src-wildcard,*.jpg) +EPS_ILLUSTRATIONS = $(call src-wildcard,*.eps) +SVG_FILES = $(call src-wildcard,*.svg) +PDF_DIR = $(call src-wildcard,pdf/*.pdf) + +OUT_PDF_IMAGES = $(EPS_ILLUSTRATIONS:%.eps=$(outdir)/%.pdf) +OUT_BITMAP_IMAGES = $(BITMAP_IMAGES:%=$(outdir)/%) +OUT_BITMAP_IMAGES += $(EPS_ILLUSTRATIONS:%.eps=$(outdir)/%.png) + +STEPMAKE_TEMPLATES = documentation include $(depth)/make/stepmake.make +########### +### Targets + +default: + +ifeq ($(out),www) +local-WWW-1: $(OUT_BITMAP_IMAGES) $(OUT_PDF_IMAGES) $(outdir)/pdf +endif + +######### +### Rules + +$(outdir)/%-flat-gray.png: %-flat-gray.png + convert -depth 8 -geometry 50x50% $< $@ + +$(outdir)/%-flat-bw.png: %-flat-bw.png + convert -depth 8 -geometry 50x50% $< $@ + +$(outdir)/%.png: %.png + ln -f $< $@ + +$(outdir)/%.jpg: %.jpg + ln -f $< $@ + +$(outdir)/%.png: %.eps + gs -dAutoRotatePages=/None -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=$@ -sDEVICE=png16m -dEPSCrop -dNOPAUSE -f $< -c quit + +$(outdir)/%.pdf: %.eps + gs -dAutoRotatePages=/None -q -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@ -dEPSCrop -c .setpdfwrite -f $< + +$(outdir)/pdf: + ln -sf $(top-src-dir)/Documentation/pictures/pdf $@