|
1 | 1 | SPLITAT= |
2 | 2 | LATEXMLPOSTEXTRAFLAGS=--timestamp=0 |
3 | 3 |
|
4 | | -# default target |
5 | | -docs.tar: |
6 | | - |
7 | 4 | include bookml/bookml.mk |
8 | 5 |
|
9 | | -%.tar: $$(AUX_DIR)/html/$$*/index.html $$(filter-out $$(AUX_DIR)/html/$$*/imsmanifest.xml,$$(filter-out $$(AUX_DIR)/html/$$*/LaTeXML.cache,$$(call bml.reclist.file,$$(AUX_DIR)/html/$$*))) |
10 | | - tar -cvf $@ --directory=$(AUX_DIR)/html/$* --exclude=./imsmanifest.xml --exclude=./LaTeXML.cache . |
| 6 | +TARGETS=$(TARGETS.html) $(AUX_DIR)/html/docs/index.plain.html |
11 | 7 |
|
12 | 8 | # custom rules to create plain style |
13 | 9 | # very hacky and not recommended until LaTeXML implements f:resource() or similar in XSLT |
14 | | -docs.zip: $(AUX_DIR)/html/docs/index.plain.html |
15 | | -docs.tar: $(AUX_DIR)/html/docs/index.plain.html |
16 | | - |
17 | 10 | # build XML files |
18 | 11 | $(AUX_DIR)/xml/docs.plain.xml: docs.tex $(BOOKML_DEPS_XML) $(wildcard *.ltxml) docs.pdf | $(AUX_DIR)/latexmlaux $(AUX_DIR)/xml |
19 | 12 | @$(call bml.prog,latexml: $< → $@) |
20 | | - @$(call bml.cmd,$(LATEXML) $(if $(call bml.grep,{bookml/bookml},$<),,--preamble=literal:\RequirePackage{bookml/bookml} \ |
21 | | - ) $(LATEXMLFLAGS) $(LATEXMLEXTRAFLAGS) --log="$(AUX_DIR)/latexmlaux/docs.plain.latexml.log" --destination="$@" "$<") |
| 13 | + @$(call bml.cmd,$(LATEXML) --preamble=literal:\RequirePackage[style=plain]{bookml/bookml} \ |
| 14 | + $(LATEXMLFLAGS) $(LATEXMLEXTRAFLAGS) --log="$(AUX_DIR)/latexmlaux/docs.plain.latexml.log" --destination="$@" "$<") |
22 | 15 |
|
23 | | -$(AUX_DIR)/html/docs/index.plain.html: $$(AUX_DIR)/xml/docs.plain.xml $$(AUX_DIR)/html/docs/index.html $$(BOOKML_DEPS_HTML) $$(wildcard bmlimages/docs-*.svg) $$(wildcard bmlimages/docs/docs.dpth) bookml/search_index.pl bookml/XSLT/proc-text.xsl $$(if $$(filter $$@,$$(BMLGOALS)),,FORCE) | $$(AUX_DIR)/html |
| 16 | +$(AUX_DIR)/html/%/index.plain.html: $$(AUX_DIR)/xml/$$*.plain.preprocessed-xml $$(AUX_DIR)/html/$$*/index.html $$(BOOKML_DEPS_HTML) $$(if $$(filter $$@,$$(BMLGOALS)),,FORCE) | $$(AUX_DIR)/html |
24 | 17 | @$(eval _recurse:=$(if $(filter $@,$(BMLGOALS)),,yes)) |
25 | 18 | +@$(if $(_recurse),$(MAKE) --no-print-directory -f $(firstword $(MAKEFILE_LIST)) "$@" "BMLGOALS=$@") |
26 | | - @$(if $(_recurse),,$(call bml.prog,latexmlpost: docs.plain.xml → docs/index.plain.html)) |
| 19 | + @$(if $(_recurse),,$(call bml.prog,latexmlpost: $*.plain.xml → $(AUX_DIR)/html/$*/index.plain.html)) |
27 | 20 | @$(if $(_recurse),,$(call bml.cmd,$(LATEXMLPOST) $(if $(wildcard LaTeXML-html5.xsl),,--stylesheet=bookml/XSLT/bookml-html5.xsl) \ |
28 | | - $(if $(SPLITAT),--splitat=$(SPLITAT)) --xsltparameter=BMLSEARCH:yes $(LATEXMLPOSTFLAGS) $(LATEXMLPOSTEXTRAFLAGS) \ |
29 | | - --dbfile=$(AUX_DIR)/latexmlaux/docs.plain.LaTeXML.db --log="$(AUX_DIR)/latexmlaux/docs.plain.latexmlpost.log" --destination="$@" "$<")) |
| 21 | + $(if $(SPLITAT),--splitat=$(SPLITAT)) --urlstyle=file --pmml --mathtex \ |
| 22 | + $(LATEXMLPOSTFLAGS) $(LATEXMLPOSTEXTRAFLAGS) --sourcedirectory=. $(LATEXMLPOSTAUTOFLAGS) \ |
| 23 | + --dbfile=$(AUX_DIR)/latexmlaux/"$*".plain.LaTeXML.db --log="$(AUX_DIR)/latexmlaux/$*.plain.latexmlpost.log" --destination="$@" "$<")) |
0 commit comments