X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fpictures%2FGNUmakefile;h=0254c26d0ba2169265cce1dfd0ec9491a870a4c4;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=4a8f2eb72f0e28a0f003389cce973b062932da2a;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/Documentation/pictures/GNUmakefile b/Documentation/pictures/GNUmakefile index 4a8f2eb72f..0254c26d0b 100644 --- a/Documentation/pictures/GNUmakefile +++ b/Documentation/pictures/GNUmakefile @@ -1,27 +1,49 @@ depth = ../.. -STEPMAKE_TEMPLATES=documentation -XPM_FILES=$(call src-wildcard,*.xpm) -EXTRA_DIST_FILES= $(XPM_FILES) +SUBDIRS = pdf -lilypond-icon = $(outdir)/lilypond.ico -ly-icon = $(outdir)/ly.ico +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) -include $(depth)/make/stepmake.make +EXTRA_DIST_FILES = $(BITMAP_IMAGES) $(EPS_ILLUSTRATIONS) $(SVG_FILES) -ifeq ($(PLATFORM_WINDOWS),yes) +OUT_PDF_IMAGES = $(EPS_ILLUSTRATIONS:%.eps=$(outdir)/%.pdf) +OUT_BITMAP_IMAGES = $(BITMAP_IMAGES:%=$(outdir)/%) +OUT_BITMAP_IMAGES += $(EPS_ILLUSTRATIONS:%.eps=$(outdir)/%.png) -$(outdir)/%.ico: %.xpm - $(buildscript-dir)/genicon $< $@ +STEPMAKE_TEMPLATES = documentation -default: $(lilypond-icon) $(ly-icon) +include $(depth)/make/stepmake.make -endif # PLATFORM_WINDOWS +########### +### Targets -local-dist: $(icon) -xgifs: $(OUTGIF_FILES) -pngs: $(OUTPNG_FILES) +default: ifeq ($(out),www) -local-WWW-1: $(OUTPNG_FILES) +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)/%.png: %.png + ln -f $< $@ + +$(outdir)/%.jpg: %.jpg + ln -f $< $@ + +$(outdir)/%.png: %.eps + gs -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=$@ -sDEVICE=png16m -dEPSCrop -dNOPAUSE -f $< -c quit + +$(outdir)/%.pdf: %.eps + gs -dAutoRotatePages=/None -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@ -dEPSCrop -c .setpdfwrite -f $< +