@@ -536,36 +536,35 @@ SE := \" style=\"-moz-column-width: 25ex; \
536536# * the manpage section title
537537#
538538ADD_HTML_MANPAGES = \
539- @ echo "Adding manpages: man$(strip $(1 )): $(strip $(2 ))"; \
540- echo "$(SA)$(strip $(1 ))$(SB)$(strip $(1 ))$(SC)$(strip $(2 ))</a></p>" >> objects/index.incl; \
541- echo "$(SD)$(strip $(1 ))$(SE)" >> objects/index.incl; \
539+ echo "Adding manpages: man$(strip $(2 )): $(strip $(3 ))"; \
540+ echo "$(SA)$(strip $(2 ))$(SB)$(strip $(2 ))$(SC)$(strip $(3 ))</a></p>" >> objects/index.incl; \
541+ echo "$(SD)$(strip $(2 ))$(SE)" >> objects/index.incl; \
542542 echo "<ul>" >> objects/index.incl; \
543- for HTML_FILE in $(filter $(DOC_DIR)/html/man/man$(strip $(1))/%.html, $(MAN_HTML_TARGETS)); do \
543+ for HTML_FILE in $(filter $(DOC_DIR)/html/man/man$(strip $(1))/%.$(strip $(2)). html, $(MAN_HTML_TARGETS)); do \
544544 BASENAME=$$(basename $$HTML_FILE .html); \
545545 echo "<li><a href=\"$${HTML_FILE\#$(DOC_DIR)/html/}\">$${BASENAME%.*}</a></li>"; \
546546 done >> objects/index.incl; \
547- echo "</ul></div>" >> objects/index.incl
547+ echo "</ul></div>" >> objects/index.incl; \
548548
549549
550550objects/index.incl: $(GENERATED_MANPAGES) objects/var-MAN_HTML_TARGETS $(DOC_SRCDIR)/Submakefile
551551 rm -f $@
552- $(call ADD_HTML_MANPAGES, 1, Commands and userspace components)
553- $(call ADD_HTML_MANPAGES, 9, Realtime components and kernel modules)
554- $(call ADD_HTML_MANPAGES, 3hal, API calls: HAL)
555- $(call ADD_HTML_MANPAGES, 3rtapi, API calls: RTAPI)
556- $(call ADD_HTML_MANPAGES, 3hm2, API calls: Hostmot2)
557- $(call ADD_HTML_MANPAGES, 3, API calls: General)
558-
559- # now make sure all manpages made it into the html index
552+ $(call ADD_HTML_MANPAGES, 1, 1, Commands and userspace components) \
553+ $(call ADD_HTML_MANPAGES, 9, 9, Realtime components and kernel modules) \
554+ $(call ADD_HTML_MANPAGES, 3, 3hal, API calls: HAL) \
555+ $(call ADD_HTML_MANPAGES, 3, 3rtapi, API calls: RTAPI) \
556+ $(call ADD_HTML_MANPAGES, 3, 3hm2, API calls: Hostmot2) \
557+ $(call ADD_HTML_MANPAGES, 3, 3, API calls: General) \
558+ # now make sure all manpages made it into the html index \
560559 FAIL=0; \
561- for F in $$(find $(DOC_DIR)/man/? -type f); do \
560+ for F in $$(find $(DOC_DIR)/man/man* -type f); do \
562561 B=$$(basename $$F); \
563562 if ! grep -q $$B $@; then \
564563 echo stray manpage not added to index: $$B; \
565564 FAIL=1; \
566565 fi; \
567566 done; \
568- if [ $$FAIL -ne 0 ]; then false ; fi
567+ if [ $$FAIL -ne 0 ]; then exit 1 ; fi
569568 mkdir -p $(DOC_DIR)/html/man/man/images/
570569 find $(DOC_DIR)/man -name "*.png" ! -name "grohtml*" -exec mv {} "$(DOC_DIR)/html/man/man/images/" \;
571570
0 commit comments