X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fuser%2FGNUmakefile;h=11653d575f96adcbc169a42da0b8120baacd7bee;hb=9e69cb84d6ee5b0a861cd97869b10e3bdf0c833c;hp=f8d23a013cc8306cbba115887ce850b2a29da71c;hpb=50f4fc5f57cc5cd137f75ee6514b526b3e75cb6f;p=lilypond.git diff --git a/Documentation/user/GNUmakefile b/Documentation/user/GNUmakefile index f8d23a013c..11653d575f 100644 --- a/Documentation/user/GNUmakefile +++ b/Documentation/user/GNUmakefile @@ -2,29 +2,30 @@ depth=../.. LATEX_FILES =$(call src-wildcard,*.latex) -# todo: add latex. -DVI_FILES = $(TELY_FILES:%.tely=$(outdir)/%.dvi) -EXTRA_DIST_FILES= $(LATEX_FILES) $(IMAGES) README.txt +EXTRA_DIST_FILES= $(LATEX_FILES) $(IMAGES) README.txt convert-ly.txt $(EPS_ILLUSTRATIONS) + IMAGES=$(call src-wildcard,*.png) +EPS_ILLUSTRATIONS=context-example.eps +PDF_ILLUSTRATIONS=context-example.pdf + +OUT_PDF_IMAGES=$(IMAGES:%.png=$(outdir)/%.pdf) $(addprefix $(outdir)/,$(PDF_ILLUSTRATIONS)) + +OUT_PNG_IMAGES=$(OUT_PDF_IMAGES:%.pdf=%.png) -OUT_EPS_IMAGES=$(IMAGES:%.png=$(outdir)/%.eps) -OUT_PNG_IMAGES=$(IMAGES:%=$(outdir)/%) OUT_TEXI_FILES=$(ITEXI_FILES:%.itexi=$(outdir)/%.texi)\ $(ITELY_FILES:%.itely=$(outdir)/%.texi) HTML_FILES = $(TELY_FILES:%.tely=$(outdir)/%.html)\ $(outdir)/lilypond-internals.html -PS_FILES = $(DVI_FILES:.dvi=.ps) -PDF_FILES = $(DVI_FILES:.dvi=.pdf) - -PS_GZ_FILES= $(addsuffix .gz, $(PS_FILES)) +# todo: add latex. +PDF_FILES = $(TELY_FILES:%.tely=$(outdir)/%.pdf) INFO_DOCS = lilypond lilypond-internals music-glossary INFO_FILES = $(INFO_DOCS:%=$(outdir)/%.info) STEPMAKE_TEMPLATES=tex texinfo omf documentation - +#TEXI2DVI_FLAGS = -E OMF_FILES += $(outdir)/lilypond-internals.html.omf LOCALSTEPMAKE_TEMPLATES=lilypond ly @@ -35,10 +36,6 @@ export TEXINPUTS include $(depth)/make/stepmake.make -dvi: $(DVI_FILES) - -ps: $(PS_FILES) - info: $(INFO_FILES) pathsettings: @@ -148,7 +145,7 @@ $(outdir)/lilypond.nexi: $(outdir)/lilypond-internals.texi # # The split user manual # -$(outdir)/lilypond/index.html: $(outdir)/lilypond.texi $(OUT_PNG_IMAGES) +$(outdir)/lilypond/index.html: $(outdir)/lilypond.texi $(OUT_PNG_IMAGES) $(OUT_EPS_IMAGES) mkdir -p $(dir $@) $(MAKEINFO) -I$(outdir) --output=$(outdir)/lilypond --css-include=$(top-src-dir)/Documentation/texinfo.css --html $< find $(outdir)/lilypond/ -name '*'.png -o -name '*'.ly | xargs rm -f @@ -192,13 +189,20 @@ $(outdir)/lilypond-internals/lilypond-internals.xml: $(outdir)/lilypond-internal mkdir -p $(dir $@) $(MAKEINFO) --output=$(outdir)/lilypond-internals --docbook $< -$(outdir)/lilypond.dvi: $(OUT_EPS_IMAGES) $(OUT_PNG_IMAGES) +$(outdir)/lilypond.pdf: $(OUT_PDF_IMAGES) $(OUT_PNG_IMAGES) $(outdir)/%.png: %.png - convert -geometry 50x50% $< $@ + convert -depth 8 -geometry 50x50% $< $@ + +$(outdir)/%.png: %.eps + gs -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -q -sOutputFile=$@ -sDEVICE=png16m -dEPSCrop -dNOPAUSE -f $< -c quit + +$(outdir)/%.pdf: %.png + convert -depth 8 $< $@ + +$(outdir)/%.pdf: %.eps + gs -dAutoRotatePages=/None -sDEVICE=pdfwrite -dNOPAUSE -dBATCH -sOutputFile=$@ -dEPSCrop -c .setpdfwrite -f $< -$(outdir)/%.eps: %.png - convert $< $@ DEEP_HTML_FILES =\ $(outdir)/lilypond/index.html\ @@ -214,20 +218,17 @@ $(outdir)/source: $(outdir)/lilypond/source: @rm -f $(@) + mkdir -p $(outdir)/lilypond ln -sf ../../../ $(@) $(outdir)/music-glossary/source: @rm -f $(@) + mkdir -p $(outdir)/music-glossary ln -sf ../../../ $(@) local-WWW: $(HTML_FILES) $(DEEP_HTML_FILES)\ $(datafiles) $(PDF_FILES) $(source-links) info info-dir -local-WWW-clean: deep-WWW-clean - -deep-WWW-clean: - rm -rf $(outdir)/lilypond $(outdir)/lilypond-internals - info-dir: $(SHELL) $(buildscript-dir)/install-info-html.sh --dir=$(outdir) lilypond lilypond-internals music-glossary @@ -235,9 +236,6 @@ info-dir: $(outdir)/%.bib: %.bib ln -f $< $@ -local-clean: - rm -f fonts.aux fonts.log feta*.tfm feta*.*pk - rm -rf $(outdir)/lilypond $(outdir)/lilypond-internals $(outdir)/music-glossary # lilypond.texi deps $(top-build-dir)/mf/$(outconfbase)/feta16list.ly: @@ -264,10 +262,3 @@ $(outdir)/lilypond-internals.nexi $(outdir)/lilypond-internals.texi: $(LILYPOND_ ## unused $(outdir)/interfaces.itexi: dummy cd $(outdir) && lilypond $(top-src-dir)/ly/generate-interface-doc - - -local-clean: local-delete - -local-delete: - find $(outdir)/ -name 'lily-[0-9]*' | xargs rm -f - -rm -f $(outdir)/*