X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2FGNUmakefile;h=9b598c923ac1f0107ae6e9feab0ee4eb36c85850;hb=8a7f57d93480c1ac296623ef1abfda23eb9544ea;hp=9592e548c513145fb4adc656e0b8fe436fddc1d7;hpb=2cb02ca327fbbde256ae6712d1e968b9da5d492e;p=lilypond.git diff --git a/Documentation/GNUmakefile b/Documentation/GNUmakefile index 9592e548c5..9b598c923a 100644 --- a/Documentation/GNUmakefile +++ b/Documentation/GNUmakefile @@ -9,7 +9,7 @@ depth = .. NAME = documentation LANGS = $(shell $(PYTHON) $(top-src-dir)/python/langdefs.py) -MANUALS_SUBDIRS = usage automated-engraving contributor essay \ +MANUALS_SUBDIRS = usage contributor essay \ web learning notation extending SUBDIRS = $(MANUALS_SUBDIRS) snippets logo pictures misc po css topdocs \ included $(LANGS) @@ -32,7 +32,7 @@ README_TOP_FILES= DEDICATION THANKS IN_ITELY_FILES = $(call src-wildcard,snippets/*-intro.itely) SNIPPET_LY_FILES = $(call src-wildcard,snippets/*.ly) -EXTRA_DIST_FILES = $(call src-wildcard,*.init) +EXTRA_DIST_FILES = $(call src-wildcard,*.init) $(call src-wildcard,*.bst) ### Out files @@ -57,19 +57,19 @@ TEXI_FILES_FROM_TELY = $(outdir)/internals.texi PDF_FILES = $(TEXINFO_MANUALS:%=$(outdir)/%.pdf) TOPDIR_HTML_MANUALS = -UNSPLITTED_HTML_MANUALS = -SPLITTED_HTML_MANUALS = $(foreach manual, $(TEXINFO_MANUALS),\ - $(if $(findstring $(manual), $(UNSPLITTED_HTML_MANUALS)),,$(manual))) -NOT_TOPDIR_HTML_MANUALS = $(foreach manual, $(SPLITTED_HTML_MANUALS),\ +UNSPLIT_HTML_MANUALS = +SPLIT_HTML_MANUALS = $(foreach manual, $(TEXINFO_MANUALS),\ + $(if $(findstring $(manual), $(UNSPLIT_HTML_MANUALS)),,$(manual))) +NOT_TOPDIR_HTML_MANUALS = $(foreach manual, $(SPLIT_HTML_MANUALS),\ $(if $(findstring $(manual), $(TOPDIR_HTML_MANUALS)),,$(manual))) -OUT_HTML_FILES = $(UNSPLITTED_HTML_MANUALS:%=$(outdir)/%.html)\ - $(SPLITTED_HTML_MANUALS:%=$(outdir)/%-big-page.html) +OUT_HTML_FILES = $(UNSPLIT_HTML_MANUALS:%=$(outdir)/%.html)\ + $(SPLIT_HTML_MANUALS:%=$(outdir)/%-big-page.html) DEEP_HTML_FILES = $(NOT_TOPDIR_HTML_MANUALS:%=$(outdir)/%/index.html) # Symlinks to refer to external source documents from split and non-split HTML source-links = $(outdir)/source\ - $(foreach manual, $(SPLITTED_HTML_MANUALS), $(outdir)/$(manual)/source) + $(foreach manual, $(SPLIT_HTML_MANUALS), $(outdir)/$(manual)/source) # Other out files @@ -84,22 +84,68 @@ INFO_FILES = $(INFO_DOCS:%=$(outdir)/%.info) ifeq ($(out),www) INFO_IMAGES_DIR = lilypond -DEST_INFO_IMAGES_SUBDIR = Documentation/ +DEST_INFO_IMAGES_SUBDIR = Documentation endif include $(depth)/make/stepmake.make OUT_TXT_FILES = $(addprefix $(outdir)/, $(addsuffix .txt, $(README_TOP_FILES))) -### Web site idiosyncrases + +### Web site idiosyncrasies $(XREF_MAPS_DIR)/web.xref-map: XREF_MAP_FLAGS += --split=node +### AJAX scripts +JS_FILES = $(call src-wildcard,*.js) +PHP_FILES = $(call src-wildcard,*.php) +EXTRA_DIST_FILES += $(JS_FILES) $(PHP_FILES) + +OUT_JS_FILES = $(JS_FILES:%.js=$(outdir)/%.js) +OUT_PHP_FILES = $(PHP_FILES:%.php=$(outdir)/%.php) + + ### bad hack for badly-integrated roadmap. $(outdir)/ROADMAP: cp $(top-src-dir)/ROADMAP $(outdir) $(outdir)/contributor.texi: $(outdir)/ROADMAP +### bad hack for badly-integrated bibliography +$(outdir)/colorado.itexi: + BSTINPUTS=$(src-dir)/essay $(buildscript-dir)/bib2texi \ + -s $(top-src-dir)/Documentation/lily-bib \ + -o $(outdir)/colorado.itexi \ + $(src-dir)/essay/colorado.bib + +$(outdir)/computer-notation.itexi: + BSTINPUTS=$(src-dir)/essay $(buildscript-dir)/bib2texi \ + -s $(top-src-dir)/Documentation/lily-bib \ + -o $(outdir)/computer-notation.itexi \ + $(src-dir)/essay/computer-notation.bib + +$(outdir)/engravingbib.itexi: + BSTINPUTS=$(src-dir)/essay $(buildscript-dir)/bib2texi \ + -s $(top-src-dir)/Documentation/lily-bib \ + -o $(outdir)/engravingbib.itexi \ + $(src-dir)/essay/engravingbib.bib + +$(outdir)/essay.texi: \ + $(outdir)/colorado.itexi \ + $(outdir)/computer-notation.itexi \ + $(outdir)/engravingbib.itexi + +$(outdir)/others-did.itexi: + BSTINPUTS=$(src-dir)/web/ $(buildscript-dir)/bib2texi \ + -s $(top-src-dir)/Documentation/lily-bib \ + -o $(outdir)/others-did.itexi \ + $(src-dir)/web/others-did.bib + +$(outdir)/we-wrote.itexi: + BSTINPUTS=$(src-dir)/web/ $(buildscript-dir)/bib2texi \ + -s $(top-src-dir)/Documentation/lily-bib \ + -o $(outdir)/we-wrote.itexi \ + $(src-dir)/web/we-wrote.bib + ########### ### Targets @@ -125,7 +171,6 @@ extra-local-help: @echo " last translation update" @echo " update-translation ISOLANG=LL call $$$$EDITOR to help updating" @echo " the translation" - @echo " skeleton-update ISOLANG=LL update Texinfo skeleton files" @echo " snippet-update ISOLANG=LL update ly snippets in Texinfo translation" @echo " according to docs in English" @echo " (use with caution)" @@ -149,9 +194,14 @@ local-clean: ifeq ($(out),www) local-WWW-1: $(OUT_TEXINFO_MANUALS) $(PDF_FILES) info +ifeq ($(AJAX_SEARCH),1) +local-WWW-2: txt-to-html $(OUT_HTML_FILES) $(DEEP_HTML_FILES) $(OUT_JS_FILES) $(OUT_PHP_FILES) $(source-links) $(OMF_FILES) +else local-WWW-2: txt-to-html $(OUT_HTML_FILES) $(DEEP_HTML_FILES) $(source-links) $(OMF_FILES) endif +endif + ######### ### Rules @@ -172,13 +222,19 @@ $(outdir)/pictures: $(MAKE) -C pictures WWW-1 ln -sf ../pictures/$(outdir) $@ -$(outdir)/web.texi: $(outdir)/ly-examples - $(outdir)/ly-examples: $(MAKE) -C web/ly-examples ln -sf ../web/ly-examples/$(outdir) $@ endif +ifeq ($(out),www) +$(outdir)/web.texi: $(outdir)/ly-examples $(outdir)/we-wrote.itexi $(outdir)/others-did.itexi +else +# duplicate (without ly-examples) +$(outdir)/web.texi: $(outdir)/we-wrote.itexi $(outdir)/others-did.itexi +endif + + # Ugh, using '%' twice not possible $(outdir)/notation/notation.xml: $(outdir)/notation.texi mkdir -p $(dir $@) @@ -205,7 +261,7 @@ $(outdir)/%/source: ln -sf $(depth)/.. $(@) -## Snippets rules idiosyncrases +## Snippets rules idiosyncrasies $(outdir)/%.itely: snippets/%-intro.itely snippets/%.snippet-list xargs $(LYS_TO_TELY) -f doctitle,texidoc,verbatim --name=$@ --template=$< < $(filter %.snippet-list, $^) @@ -214,6 +270,12 @@ $(outdir)/snippets.texi: $(GENERATED_ITELY_FILES) $(SNIPPET_LY_FILES) $(outdir)/%.bib: %.bib ln -f $< $@ +$(outdir)/%.js: %.js + ln -f $< $@ + +$(outdir)/%.php: %.php + ln -f $< $@ + ## notation.texi deps $(top-build-dir)/mf/$(outconfbase)/feta16list.ly: $(MAKE) -C $(top-src-dir)/mf @@ -278,6 +340,9 @@ TEXI_LANGUTIL_FLAGS += --skeleton TELY_FILES = $(call src-wildcard,$(ISOLANG)/*.tely) skeleton-update: + @echo "$@ has been discontinued" + @echo "simply copy .texi, .itexi files you want to translate" + exit 2 mkdir -p $(ISOLANG) $(PYTHON) $(auxscript-dir)/texi-langutils.py -d $(outdir) -l $(ISOLANG) $(TEXI_LANGUTIL_FLAGS) $(TELY_FILES:$(ISOLANG)/%.tely=../%.tely) $(PYTHON) $(auxscript-dir)/texi-skeleton-update.py $(ISOLANG) $(outdir) @@ -315,7 +380,8 @@ check-translation: update-translation: ISOLANG=$(ISOLANG) $(PYTHON) $(auxscript-dir)/check_translation.py --update $(CHECK_TRANSLATION_FLAGS) $(TRANSLATION_FILES) +# what's it gonna be, boy...tranlationS-/translation- translation-status: - @echo Target temporarily disabled + PYTHONPATH=$(top-src-dir)/python:$(top-src-dir)/python/auxiliar $(PYTHON) $(top-src-dir)/scripts/auxiliar/translations-status.py .SECONDARY: