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.
- X-seq: zsh-workers 43692
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: [PATCH] Generate man pages in the build dir, rather than the source dir.
- Date: Tue, 16 Oct 2018 02:30:52 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=from:to:subject:date:message-id; s=fm1; bh=XY3b22HaQo/LVWFx2CByURkrB1V9e3udMoIgjF6QdyI=; b=ccyeH7pZVnKE 8AHHn7aSrGe90jthIm76nOsBl06LZxRklqjwt2OdSLxpVZ8kJrtZxRTXOEj2Ogih wdXLz6KgjtFaEiB+LPSrF3Y8oxYrHd5UBlzsmKUMzY7mpd5ms1Kd1D7LWDGDN9IL yeXKLUvbUai3GGM2tW6LzTibnX2G4MH3oadCob287TlXILdfYJqBSJBdFVAoyUnD qBaAJa/jH5QHEhgmdulY4ZgyFKoalAZlUAAMtSXEKRUPk8tC1FtUNgIwe78w75/3 0IRNXYkvt3S8IPtRn0IMwV3GxvrQ2WQf6Y9ZXw+bZ5hPGFOqSHwZLPzTO31AzlfQ rD/Wo8orAw==
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=date:from:message-id:subject:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; bh=XY3b22HaQo/LVWFx2CByURkrB1V9e3udMoIgjF6QdyI=; b=gHjia0JC qHgAvkDB+lTPhvwKBRe7hN1RlKsHXe3gQfz+qLTpi4yPWfrmf6yC4rgZq6VjouK2 jUo3A8plLe8CyuTaPQ3nh33TWJ5YpohTgNkYdQW+zcE+D6asVESP2Gmxsx/IiXg3 ZeQpJfnvMa5bobw7dbjB8o1DMisev4bhQ+5PjyD+lCEOHBhcHR/43ntyAKPTPSNE yg8phF9GVxTnkERRXTJ7Mz+U2zcGYjmxpzfOICr37DW8ZADM0wdoaOlUg6fkPTmB Lx7tu5gsZjgw+r8zt+7ZloD1AiUO7xQ6Wxl4sGRjl6TThr8KlOak1I6lw3JbRPqO sQROXc8Z9HXr8w==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
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