diff options
author | Barton E. Schaefer <schaefer@zsh.org> | 2013-11-25 00:11:36 -0800 |
---|---|---|
committer | Barton E. Schaefer <schaefer@zsh.org> | 2013-11-25 00:11:36 -0800 |
commit | 7b0ea6e00d2ba07e74bda330658ee31c0622d848 (patch) | |
tree | 3df1fd16e96df4b4d0a6936c87075b37ecd5201c /Doc | |
parent | 9503b161ab893a5d5c6ac6f9fdd9e938aee7045c (diff) | |
download | zsh-7b0ea6e00d2ba07e74bda330658ee31c0622d848.tar.gz zsh-7b0ea6e00d2ba07e74bda330658ee31c0622d848.tar.xz zsh-7b0ea6e00d2ba07e74bda330658ee31c0622d848.zip |
32045 (adjusted by 32047): use makefile dependencies to determine whether to
rebuild helpfiles
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/Makefile.in | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Doc/Makefile.in b/Doc/Makefile.in index eae330171..50e210fcf 100644 --- a/Doc/Makefile.in +++ b/Doc/Makefile.in @@ -83,7 +83,7 @@ Zsh/seealso.yo Zsh/tcpsys.yo Zsh/zftpsys.yo Zsh/zle.yo # ========== DEPENDENCIES FOR BUILDING ========== -all: man runhelp texi ../META-FAQ +all: man $(runhelp) texi ../META-FAQ .PHONY: all everything: all dvi html pdf info @@ -184,13 +184,14 @@ $(sdir)/zsh.texi: $(YODLSRC) man: $(MAN) .PHONY: man -runhelp: man - test x"$(runhelpdir)" = x"" || { \ - test -r $(sdir)/help.txt && test -r $(sdir)/help/ztcp; \ - } || perl $(sdir_top)/Util/helpfiles \ +runhelp: help.txt +.PHONY: runhelp + +help.txt: zshbuiltins.1 + @-rm -f $(sdir)/help.txt $(sdir)/help/* + perl $(sdir_top)/Util/helpfiles \ $(sdir)/zshbuiltins.1 $(sdir)/help $(sdir)/help.txt \ || { rm -f $(sdir)/help.txt $(sdir)/help/*; false; } -.PHONY: runhelp $(MAN): zmacros.yo zman.yo @@ -312,7 +313,7 @@ install.man: man .PHONY: install.man # install runhelp pages, creating install directory if necessary -install.runhelp: runhelp +install.runhelp: $(runhelp) if test x"$(runhelpdir)" != x""; then \ ${SHELL} $(sdir_top)/mkinstalldirs $(DESTDIR)$(runhelpdir); \ $(INSTALL_DATA) $(sdir)/help/* $(DESTDIR)$(runhelpdir); \ |