mirror of
https://github.com/aria2/aria2.git
synced 2025-04-05 05:27:38 +03:00
Always build doc/manual-src
Should sphinx-build be not available AND the man file not be prsent, then just "touch" it into existence (and warn about that)
This commit is contained in:
parent
322bd45cfb
commit
02c65e0eca
4 changed files with 21 additions and 2 deletions
|
@ -1,6 +1,4 @@
|
||||||
if HAVE_SPHINXBUILD
|
|
||||||
SUBDIRS = manual-src
|
SUBDIRS = manual-src
|
||||||
endif #SPHINXBUILD
|
|
||||||
|
|
||||||
doc_xmlrpcdir = $(docdir)/xmlrpc
|
doc_xmlrpcdir = $(docdir)/xmlrpc
|
||||||
dist_doc_xmlrpc_DATA = xmlrpc/aria2mon \
|
dist_doc_xmlrpc_DATA = xmlrpc/aria2mon \
|
||||||
|
|
|
@ -16,8 +16,15 @@ man_MANS = $(BUILDDIR)/man/aria2c.1
|
||||||
EXTRA_DIST = $(man_MANS) aria2c.rst libaria2.rst index.rst README.rst\
|
EXTRA_DIST = $(man_MANS) aria2c.rst libaria2.rst index.rst README.rst\
|
||||||
technical-notes.rst _static/default2.css mkapiref.py
|
technical-notes.rst _static/default2.css mkapiref.py
|
||||||
|
|
||||||
|
if HAVE_SPHINXBUILD
|
||||||
$(man_MANS): aria2c.rst
|
$(man_MANS): aria2c.rst
|
||||||
$(MAKE) man
|
$(MAKE) man
|
||||||
|
else
|
||||||
|
$(man_MANS):
|
||||||
|
$(warning Building only stub man pages. Please install sphinx-build)
|
||||||
|
if [ ! -d "$(@D)" ]; then mkdir -p "$(@D)"; fi;
|
||||||
|
if [ ! -e "$@" ]; then touch "$@"; fi;
|
||||||
|
endif
|
||||||
|
|
||||||
# Autogenerated rules by sphinx-quickstart
|
# Autogenerated rules by sphinx-quickstart
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,15 @@ mandir = @mandir@/pt
|
||||||
man_MANS = $(BUILDDIR)/man/aria2c.1
|
man_MANS = $(BUILDDIR)/man/aria2c.1
|
||||||
EXTRA_DIST = $(man_MANS) aria2c.rst index.rst README.rst _static/default2.css
|
EXTRA_DIST = $(man_MANS) aria2c.rst index.rst README.rst _static/default2.css
|
||||||
|
|
||||||
|
if HAVE_SPHINXBUILD
|
||||||
$(man_MANS): aria2c.rst
|
$(man_MANS): aria2c.rst
|
||||||
$(MAKE) man
|
$(MAKE) man
|
||||||
|
else
|
||||||
|
$(man_MANS):
|
||||||
|
$(warning Building only stub man pages. Please install sphinx-build)
|
||||||
|
if [ ! -d "$(@D)" ]; then mkdir -p "$(@D)"; fi;
|
||||||
|
if [ ! -e "$@" ]; then touch "$@"; fi;
|
||||||
|
endif
|
||||||
|
|
||||||
# Autogenerated rules by sphinx-quickstart
|
# Autogenerated rules by sphinx-quickstart
|
||||||
|
|
||||||
|
|
|
@ -16,8 +16,15 @@ mandir = @mandir@/ru
|
||||||
man_MANS = $(BUILDDIR)/man/aria2c.1
|
man_MANS = $(BUILDDIR)/man/aria2c.1
|
||||||
EXTRA_DIST = $(man_MANS) aria2c.rst index.rst _static/default2.css
|
EXTRA_DIST = $(man_MANS) aria2c.rst index.rst _static/default2.css
|
||||||
|
|
||||||
|
if HAVE_SPHINXBUILD
|
||||||
$(man_MANS): aria2c.rst
|
$(man_MANS): aria2c.rst
|
||||||
$(MAKE) man
|
$(MAKE) man
|
||||||
|
else
|
||||||
|
$(man_MANS):
|
||||||
|
$(warning Building only stub man pages. Please install sphinx-build)
|
||||||
|
if [ ! -d "$(@D)" ]; then mkdir -p "$(@D)"; fi;
|
||||||
|
if [ ! -e "$@" ]; then touch "$@"; fi;
|
||||||
|
endif
|
||||||
|
|
||||||
# Autogenerated rules by sphinx-quickstart
|
# Autogenerated rules by sphinx-quickstart
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue