@@ -480,36 +480,35 @@ SE := \" style=\"-moz-column-width: 25ex; \
480480# * the manpage section title
481481#
482482ADD_HTML_MANPAGES = \
483- @ echo "Adding manpages: man$(strip $(1 )): $(strip $(2 ))"; \
484- echo "$(SA)$(strip $(1 ))$(SB)$(strip $(1 ))$(SC)$(strip $(2 ))</a></p>" >> objects/index.incl; \
485- echo "$(SD)$(strip $(1 ))$(SE)" >> objects/index.incl; \
483+ echo "Adding manpages: man$(strip $(2 )): $(strip $(3 ))"; \
484+ echo "$(SA)$(strip $(2 ))$(SB)$(strip $(2 ))$(SC)$(strip $(3 ))</a></p>" >> objects/index.incl; \
485+ echo "$(SD)$(strip $(2 ))$(SE)" >> objects/index.incl; \
486486 echo "<ul>" >> objects/index.incl; \
487- for HTML_FILE in $(filter $(DOC_DIR)/html/man/man$(strip $(1))/%.html, $(MAN_HTML_TARGETS)); do \
487+ for HTML_FILE in $(filter $(DOC_DIR)/html/man/man$(strip $(1))/%.$(strip $(2)). html, $(MAN_HTML_TARGETS)); do \
488488 BASENAME=$$(basename $$HTML_FILE .html); \
489489 echo "<li><a href=\"$${HTML_FILE\#$(DOC_DIR)/html/}\">$${BASENAME%.*}</a></li>"; \
490490 done >> objects/index.incl; \
491- echo "</ul></div>" >> objects/index.incl
491+ echo "</ul></div>" >> objects/index.incl; \
492492
493493
494494objects/index.incl: $(GENERATED_MANPAGES) objects/var-MAN_HTML_TARGETS $(DOC_SRCDIR)/Submakefile
495495 rm -f $@
496- $(call ADD_HTML_MANPAGES, 1, Commands and non-realtime HAL components)
497- $(call ADD_HTML_MANPAGES, 9, Realtime HAL components)
498- $(call ADD_HTML_MANPAGES, 3hal, API calls: HAL)
499- $(call ADD_HTML_MANPAGES, 3rtapi, API calls: RTAPI)
500- $(call ADD_HTML_MANPAGES, 3hm2, API calls: Hostmot2)
501- $(call ADD_HTML_MANPAGES, 3, API calls: General)
502-
503- # now make sure all manpages made it into the html index
496+ $(call ADD_HTML_MANPAGES, 1, 1, Commands and userspace components) \
497+ $(call ADD_HTML_MANPAGES, 9, 9, Realtime components and kernel modules) \
498+ $(call ADD_HTML_MANPAGES, 3, 3hal, API calls: HAL) \
499+ $(call ADD_HTML_MANPAGES, 3, 3rtapi, API calls: RTAPI) \
500+ $(call ADD_HTML_MANPAGES, 3, 3hm2, API calls: Hostmot2) \
501+ $(call ADD_HTML_MANPAGES, 3, 3, API calls: General) \
502+ # now make sure all manpages made it into the html index \
504503 FAIL=0; \
505- for F in $$(find $(DOC_DIR)/man/? -type f); do \
504+ for F in $$(find $(DOC_DIR)/man/man* -type f); do \
506505 B=$$(basename $$F); \
507506 if ! grep -q $$B $@; then \
508507 echo stray manpage not added to index: $$B; \
509508 FAIL=1; \
510509 fi; \
511510 done; \
512- if [ $$FAIL -ne 0 ]; then false ; fi
511+ if [ $$FAIL -ne 0 ]; then exit 1 ; fi
513512 mkdir -p $(DOC_DIR)/html/man/man/images/
514513 find $(DOC_DIR)/man -name "*.png" ! -name "grohtml*" -exec mv {} "$(DOC_DIR)/html/man/man/images/" \;
515514
0 commit comments