* [PATCH] Generate man pages in the build dir, rather than the source dir.
@ 2018-10-16 2:30 Daniel Shahaf
0 siblings, 0 replies; only message in thread
From: Daniel Shahaf @ 2018-10-16 2:30 UTC (permalink / raw)
To: zsh-workers
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2018-10-16 2:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-10-16 2:30 [PATCH] Generate man pages in the build dir, rather than the source dir Daniel Shahaf
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).