X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fpictures%2FGNUmakefile;h=824fc66bf70e92c1682067f0e2e99a993c8d9589;hb=c20fff645e325d392d2588721144f4204d0ef9da;hp=3d2cca7608da0bfecb236d3b4533ecb6e4c3cffa;hpb=8054dbca2f440e4cdbf98af57a9d548df64f9f8f;p=lilypond.git diff --git a/Documentation/pictures/GNUmakefile b/Documentation/pictures/GNUmakefile index 3d2cca7608..824fc66bf7 100644 --- a/Documentation/pictures/GNUmakefile +++ b/Documentation/pictures/GNUmakefile @@ -1,25 +1,45 @@ depth = ../.. -STEPMAKE_TEMPLATES=documentation -XPM_FILES=$(wildcard *.xpm) -EXTRA_DIST_FILES= $(XPM_FILES) +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) -lilypond-icon = $(outdir)/lilypond.ico -ly-icon = $(outdir)/ly.ico +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 -ifeq ($(PLATFORM_WINDOWS),yes) +########### +### Targets + +default: + +ifeq ($(out),www) +local-WWW-1: $(OUT_BITMAP_IMAGES) $(OUT_PDF_IMAGES) +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)/%.ico: %.xpm - $(PYTHON) $(buildscript-dir)/genico.py $< $@ +$(outdir)/%.png: %.png + ln -f $< $@ -default: $(lilypond-icon) $(ly-icon) +$(outdir)/%.jpg: %.jpg + ln -f $< $@ -endif # PLATFORM_WINDOWS +$(outdir)/%.png: %.eps + gs -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=$@ -sDEVICE=png16m -dEPSCrop -dNOPAUSE -f $< -c quit -local-dist: $(icon) -xgifs: $(OUTGIF_FILES) -pngs: $(OUTPNG_FILES) -local-WWW: $(OUTPNG_FILES) +$(outdir)/%.pdf: %.eps + gs -dAutoRotatePages=/None -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@ -dEPSCrop -c .setpdfwrite -f $<