about summary refs log tree commit diff
diff options
context:
space:
mode:
-rw-r--r--Doc/Makefile.in17
-rw-r--r--Doc/Zsh/manual.yo2
2 files changed, 14 insertions, 5 deletions
diff --git a/Doc/Makefile.in b/Doc/Makefile.in
index 00728d9e8..28d527570 100644
--- a/Doc/Makefile.in
+++ b/Doc/Makefile.in
@@ -67,7 +67,7 @@ Zsh/compat.yo Zsh/compctl.yo Zsh/compsys.yo Zsh/compwid.yo Zsh/cond.yo \
 Zsh/exec.yo Zsh/expn.yo \
 Zsh/filelist.yo Zsh/files.yo Zsh/func.yo Zsh/grammar.yo Zsh/manual.yo \
 Zsh/index.yo Zsh/intro.yo Zsh/invoke.yo Zsh/jobs.yo Zsh/metafaq.yo \
-Zsh/modules.yo Zsh/modlist.yo Zsh/modmenu.yo $(MODDOCSRC) \
+Zsh/modules.yo Zsh/modlist.yo Zsh/modmenu.yo Zsh/manmodmenu.yo $(MODDOCSRC) \
 Zsh/options.yo Zsh/params.yo Zsh/prompt.yo Zsh/redirect.yo Zsh/restricted.yo \
 Zsh/seealso.yo Zsh/zftpsys.yo Zsh/zle.yo
 
@@ -178,9 +178,7 @@ Zsh/modlist.yo: $(MODDOCSRC)
 		echo ")"; \
 	    done; \
 	    echo "enditem()"; \
-	    echo "startmenu()"; \
 	    echo "includefile(Zsh/modmenu.yo)"; \
-	    echo "endmenu()"; \
 	    set '' $(MODDOCSRC); \
 	    unset mod1 mod2 mod3; \
 	    test ".$$2" != . && \
@@ -200,12 +198,22 @@ Zsh/modlist.yo: $(MODDOCSRC)
 
 Zsh/modmenu.yo: $(MODDOCSRC)
 	( \
+	    echo "startmenu()"; \
 	    for modfile in $(MODDOCSRC); do \
 		sed -n '1{s|^COMMENT(!MOD!\(.*\)$$|menu(The \1 Module)|;p;q;}' \
 		    < $(sdir)/$$modfile; \
-	    done \
+	    done; \
+	    echo "endmenu()" \
 	) > $(sdir)/Zsh/modmenu.yo
 
+Zsh/manmodmenu.yo: $(MODDOCSRC)
+	( \
+	    for modfile in $(MODDOCSRC); do \
+		sed -n '1{s|^COMMENT(!MOD!\(.*\)$$|menu(The \1 Module)|;p;q;}' \
+		    < $(sdir)/$$modfile; \
+	    done \
+	) > $(sdir)/Zsh/manmodmenu.yo
+
 # ========== DEPENDENCIES FOR INSTALLING ==========
 
 # install just installs the manual pages
@@ -278,6 +286,7 @@ clean-here:
 	rm -f *.aux *.cp *.cps *.fn *.fns *.ky *.log
 	rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
 	rm -rf infodir
+	rm -f *.1 Zsh/modlist.yo Zsh/modmenu.yo Zsh/manmodmenu.yo
 .PHONY: clean-here
 
 distclean-here: clean-here
diff --git a/Doc/Zsh/manual.yo b/Doc/Zsh/manual.yo
index 19497386a..53176e079 100644
--- a/Doc/Zsh/manual.yo
+++ b/Doc/Zsh/manual.yo
@@ -115,7 +115,7 @@ menu(Examples)
 
 Zsh Modules
 
-includefile(Zsh/modmenu.yo)
+includefile(Zsh/manmodmenu.yo)
 endmenu()
 texinode(The Z Shell Manual)(Introduction)(Top)(Top)
 chapter(The Z Shell Manual)