Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

[PATCH] 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
---
I've verified that in-tree and out-of-tree both work, including tarball rolling.

Yes, the case/esac's and the $$target variable are now redundant.

Cheers,

Daniel

 Doc/Makefile.in | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

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
 



Messages sorted by: Reverse Date, Date, Thread, Author