X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=make%2Fmutopia-targets.make;h=f89fcc4060a1a605ed64aa35bdbdd0acd6b3649c;hb=905473989ebcecca6922afcf6161c5c24a8e0282;hp=541d10b0168d4a77607f181647193ecd542c3822;hpb=55fa3168d0fb5326341ff56d7a1638c89eb2ebaf;p=lilypond.git diff --git a/make/mutopia-targets.make b/make/mutopia-targets.make index 541d10b016..f89fcc4060 100644 --- a/make/mutopia-targets.make +++ b/make/mutopia-targets.make @@ -1,15 +1,53 @@ +.PHONY: download mutopia png ps scores tar + +.PRECIOUS: $(outdir)/%.ps $(outdir)/%-book.ps +.PRECIOUS: $(outdir)-letter/%.ps all: $(OUT_FILES) +ifeq ($(out),www) +local-WWW-1: $(ly_examples) $(pdf_examples) $(png_examples) +endif + +tar: + mkdir -p $(outdir)/$(tarball) + cp -p *.ly $(outdir)/$(tarball) + cd $(outdir) && tar czf $(tarball).tar.gz $(tarball) + rm -rf $(outdir)/$(tarball) + +png: $(png_examples) -local-WWW: $(ly_examples) $(fly_examples) $(ps_examples) $(gif_examples) - (cd $(outdir); $(PYTHON) ../$(buildscripts)/mutopia-index.py --package=$(topdir) --prefix=../ --suffix=/$(outdir) $(html_subdirs) $(all_examples)) - $(PYTHON) $(step-bindir)/add-html-footer.py --package=$(topdir) --index=$(depth)/$(outdir)/index.html $(outdir)/index.html - echo $^ > $(depth)/wwwlist +ps: $(ps_examples) -convert-mudela: local-convert-mudela +scores: $(score_ps) + $(MAKE) ps_examples="$<" ps + +local-mutopia: + $(MAKE) examples="$(mutopia-examples)" PAPERSIZE=letter local-WWW-1 $(mutopia-letter) + +mutopia: local-mutopia $(LOOP) -local-convert-mudela: - $(PYTHON) $(depth)/scripts/convert-mudela.py -e *ly +mutopia-letter=$(mutopia-examples:%=out-letter/%.ps.gz) + +local-clean: local-letter-clean + +local-letter-clean: + rm -f $(outdir)-letter/* + + +local-help: local-mutopia-help + +local-mutopia-help: + @echo -e "\ + update $(outdir)/.ps\n\ + -book update booklet $(outdir)/-book.ps\n\ + mutopia update PNGs, PostScript a4 and letter of all mutopia-examples\n\ + png update PNGs of all examples\n\ + ps update PostScript of all examples\n\ + scores update PostScript of all scores\n\ +"\ +# + +