diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-04-21 17:06:15 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-04-21 17:17:35 +0200 |
commit | 601721c18625f5af669c5a05f76da5f82e669af8 (patch) | |
tree | eba1d9d776c4e213bd2a4010cb5960f5cba8cae8 | |
parent | 3e5cef09d72cf5007b253aacf3a28b5b28fdb5bc (diff) | |
download | curl-bagder/build-curl.1-oot.tar.gz |
cmdline-opts: for non-perl builds copy from source treebagder/build-curl.1-oot
... for out-of-tree builds from tarballs that have a pre-built
docs/curl.1 in the source.
-rw-r--r-- | docs/cmdline-opts/Makefile.am | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/docs/cmdline-opts/Makefile.am b/docs/cmdline-opts/Makefile.am index e5762096d..692eb42d2 100644 --- a/docs/cmdline-opts/Makefile.am +++ b/docs/cmdline-opts/Makefile.am @@ -31,4 +31,14 @@ EXTRA_DIST = $(DPAGES) MANPAGE.md gen.pl $(OTHERPAGES) CMakeLists.txt all: $(MANPAGE) $(MANPAGE): $(DPAGES) $(OTHERPAGES) - @PERL@ $(srcdir)/gen.pl mainpage $(srcdir) > $(MANPAGE) + (if ! test -x "$(PERL)"; then \ + if ! test -f "$(top_srcdir)/docs/curl.1"; then \ + echo "Creating docs/curl.1 requires perl!"; \ + exit 2; \ + fi; \ + if test "$(top_srcdir)x" != "$(top_builddir)x"; then \ + cp $(top_srcdir)/docs/curl.1 $(MANPAGE); \ + fi \ + else \ + @PERL@ $(srcdir)/gen.pl mainpage $(srcdir) > $(MANPAGE); \ + fi) |