diff --git a/Makefile b/Makefile index f5cf0d5..865b143 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,8 @@ help: $(info make all - generate lisp and manual) $(info make lisp - generate byte-code and autoloads) $(info make redo - re-generate byte-code and autoloads) - $(info make docs - generate most manual formats) + $(info make docs - generate all manual formats) + $(info make redo-docs - re-generate all manual formats) $(info make texi - generate texi manual) $(info make info - generate info manual) $(info make html - generate html manual file) @@ -22,13 +23,15 @@ help: $(info make clean - remove most generated files) @printf "\n" -redo: - @$(MAKE) -C lisp clean lisp lisp: @$(MAKE) -C lisp lisp +redo: + @$(MAKE) -C lisp clean lisp docs: @$(MAKE) -C docs docs +redo-docs: + @$(MAKE) -C docs redo-docs texi: @$(MAKE) -C docs texi info: diff --git a/docs/Makefile b/docs/Makefile index 8341a90..7a39da8 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -3,16 +3,21 @@ include ../default.mk docs: texi info html html-dir pdf -texi: $(PKG).texi -info: $(PKG).info dir -html: $(PKG).html -pdf: $(PKG).pdf +texi: $(PKG).texi +info: $(PKG).info dir +html: $(PKG).html +html-dir: $(PKG)/index.html +pdf: $(PKG).pdf ORG_ARGS = --batch -Q $(ORG_LOAD_PATH) ORG_EVAL += --eval "(setq indent-tabs-mode nil)" ORG_EVAL += --eval "(setq org-src-preserve-indentation nil)" ORG_EVAL += --funcall org-texinfo-export-to-texinfo +redo-docs: + @touch $(PKG).org + @make docs + %.texi: %.org @printf "Generating $@\n" @$(EMACS) $(ORG_ARGS) $< $(ORG_EVAL) @@ -40,8 +45,9 @@ HTML_FIXUP_MENU = '/<\/body>/i