From 76a16498d5c76aa3fee0805b8241263249d71b94 Mon Sep 17 00:00:00 2001 From: Daniel Shahaf Date: Tue, 16 Oct 2018 02:30:52 +0000 Subject: 43692: Generate man pages in the build dir, rather than the source dir. The following files are still generated in the source dir (in out-of-tree builds): Doc/Zsh/manmodmenu.yo Doc/Zsh/modlist.yo Doc/Zsh/modmenu.yo Doc/version.yo Doc/zsh.idx Doc/zsh.texi META-FAQ --- Doc/Makefile.in | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Doc') diff --git a/Doc/Makefile.in b/Doc/Makefile.in index 9dea79252..71ca52195 100644 --- a/Doc/Makefile.in +++ b/Doc/Makefile.in @@ -142,7 +142,7 @@ zsh.info: $(sdir)/zsh.texi .yo.1: @case $@ in \ */*) target=$@ ;; \ - *) target=$(sdir)/$@ ;; \ + *) target=$@ ;; \ esac; \ case '$(YODL)' in :*) touch $$target ;; *) \ echo $(YODL) -o $$target -I$(sdir):. -w zman.yo version.yo $< ; \ @@ -176,9 +176,9 @@ zsh_toc.html: $(sdir)/zsh.texi texi2html.conf --init-file texi2html.conf $(sdir)/zsh.texi zshall.1: zsh.yo - @case $@ in \ + case $@ in \ */*) target=$@ ;; \ - *) target=$(sdir)/$@ ;; \ + *) target=$@ ;; \ esac; \ case '$(YODL)' in :*) touch $$target ;; *) \ echo $(YODL) -o $$target -I$(sdir) -DZSHALL -w zman.yo version.yo zsh.yo; \ @@ -203,7 +203,7 @@ runhelp: help.txt help.txt: zshbuiltins.1 @-rm -f $@ help/* perl $(sdir_top)/Util/helpfiles \ - $(sdir)/zshbuiltins.1 help help.txt \ + zshbuiltins.1 help help.txt \ || rm -f help.txt help/* $(MAN): zmacros.yo zman.yo @@ -328,8 +328,8 @@ uninstall: uninstall.man uninstall.runhelp install.man: man ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(mandir)/man1 for file in $(MAN); do \ - test -s $(sdir)/$$file || exit 1; \ - $(INSTALL_DATA) $(sdir)/$$file $(DESTDIR)$(mandir)/man1/`echo $$file | sed 's|zsh|$(tzsh)|'` || exit 1; \ + test -s $$file || exit 1; \ + $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man1/`echo $$file | sed 's|zsh|$(tzsh)|'` || exit 1; \ done .PHONY: install.man -- cgit 1.4.1