X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=inline;f=build%2FMakebottom;h=3ba1a395c0e1deaff77ffb5e631c2d103dcf35a4;hb=86b74f27a95b617008575a9088e4c675e9f956d6;hp=ef5d75cfdcdff7d37c281b74f34d833432411f25;hpb=1b40267def6197cb9ff59f13910a43f0e0e691b9;p=libucw.git diff --git a/build/Makebottom b/build/Makebottom index ef5d75cf..3ba1a395 100644 --- a/build/Makebottom +++ b/build/Makebottom @@ -3,7 +3,9 @@ # The run tree -runtree: run/.tree-stamp $(addsuffix /.dir-stamp,$(addprefix $(o)/,$(DIRS))) +DOCDIR=doc + +runtree: run/.tree-stamp $(addsuffix /.dir-stamp,$(addprefix $(o)/,$(DIRS)) $(addprefix run/$(DOCDIR)/,$(DOC_MODULES))) run/.tree-stamp: $(o)/config.mk $(M)Creating runtree @@ -194,19 +196,20 @@ $(DATAFILES): $(o)/%: $(s)/% # Rules for documentation -$(o)/%.html: $(o)/%.txt +$(o)/%.html: $(o)/%.txt $(s)/build/asciidoc.conf $(s)/build/asciidoc-xhtml.conf run/$(DOCDIR)/$(DOC_MODULE)/.dir-stamp $(M)"DOC-HTML $<" $(Q)asciidoc -e -f $(s)/build/asciidoc.conf -f $(s)/build/asciidoc-xhtml.conf -f /etc/asciidoc/asciidoc.conf -f /etc/asciidoc/xhtml11.conf $< + $(Q)$(call symlink,$@,run/$(DOCDIR)/$(DOC_MODULE)) # In reality, we do not depend on the .txt files, but on the corresponding .deflist's. # However, the Makefile language cannot express that doc-extract generates both .txt # and .deflist, so we always use the .txt's in dependencies. -$(patsubst %.html,%.txt,$(DOC_INDICES)): $(o)/%.txt: $(patsubst %.html,%.txt,$(DOCS)) +$(patsubst %.html,%.txt,$(DOC_INDICES)): $(o)/%.txt: $(patsubst %.html,%.txt,$(DOCS)) $(s)/build/doc-defs $(M)"DOC-DEFS $@" $(Q)echo $@: $(DOC_HEAD) $(DOC_LIST) >> $(o)/depend.new $(Q)$(s)/build/doc-defs $(DOC_HEAD) $@ $(DOC_LIST) -$(patsubst %.html,%.txt,$(DOCS)): $(o)/%.txt: $(s)/%.txt +$(patsubst %.html,%.txt,$(DOCS)): $(o)/%.txt: $(s)/%.txt $(s)/build/doc-extract $(M)"DOC-EXT $<" $(Q)$(s)/build/doc-extract $< $@ $(o)/depend.new $(s) $(patsubst %.txt,%.deflist,$@) @@ -220,4 +223,4 @@ default-install: # when searching for implicit rules and thence targets considered intermediate. .SECONDARY: -.PHONY: all clean distclean runtree programs api datafiles force tags configs dust install default-install +.PHONY: all clean distclean runtree programs api datafiles force tags configs dust install default-install docs