mirror of
https://github.com/zeromq/libzmq.git
synced 2025-01-14 09:47:56 +08:00
Problem: doc/Makefile.am ignores --without-docs
Solution: add the document files to the MAN_DOC and MAN_HTML targets in doc/Makefile.am only if BUILD_DOC and INSTALL_MAN are set, otherwise leave the targets empty to avoid errors in make distcheck.
This commit is contained in:
parent
2d9e7b57f9
commit
4366d7edf9
@ -23,22 +23,26 @@ MAN3 = zmq_bind.3 zmq_unbind.3 zmq_connect.3 zmq_disconnect.3 zmq_close.3 \
|
||||
MAN7 = zmq.7 zmq_tcp.7 zmq_pgm.7 zmq_inproc.7 zmq_ipc.7 \
|
||||
zmq_null.7 zmq_plain.7 zmq_curve.7 zmq_tipc.7 zmq_vmci.7
|
||||
|
||||
MAN_DOC = $(MAN1) $(MAN3) $(MAN7)
|
||||
MAN_DOC =
|
||||
|
||||
MAN_TXT = $(MAN3:%.3=%.txt)
|
||||
MAN_TXT += $(MAN7:%.7=%.txt)
|
||||
MAN_HTML = $(MAN_TXT:%.txt=%.html)
|
||||
MAN_HTML =
|
||||
|
||||
MAINTAINERCLEANFILES = $(MAN_DOC) $(MAN_HTML)
|
||||
MAINTAINERCLEANFILES =
|
||||
|
||||
EXTRA_DIST = asciidoc.conf $(MAN_TXT)
|
||||
|
||||
if INSTALL_MAN
|
||||
MAN_DOC += $(MAN1) $(MAN3) $(MAN7)
|
||||
dist_man_MANS = $(MAN_DOC)
|
||||
MAINTAINERCLEANFILES += $(MAN_DOC)
|
||||
endif
|
||||
|
||||
if BUILD_DOC
|
||||
MAN_HTML += $(MAN_TXT:%.txt=%.html)
|
||||
EXTRA_DIST += $(MAN_HTML)
|
||||
MAINTAINERCLEANFILES += $(MAN_HTML)
|
||||
|
||||
SUFFIXES=.html .txt .xml .3 .7
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user