]> granicus.if.org Git - libexpat/commitdiff
doc/Makefile.am: Improve scope of docbook2man availability
authorSebastian Pipping <sebastian@pipping.org>
Sat, 21 Oct 2017 17:25:40 +0000 (19:25 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Sat, 21 Oct 2017 17:40:14 +0000 (19:40 +0200)
.. so that "make dist" has no chance of shipping no manpage
or and outdated one.

expat/doc/Makefile.am

index af22654636f87b32ee94960d5e3b70f0f69c586e..6bbcb9a60f8fce00c7c6312a3631af61fe35950f 100644 (file)
 # OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
 # USE OR OTHER DEALINGS IN THE SOFTWARE.
 
-if WITH_DOCBOOK
 dist_man_MANS = xmlwf.1
 
 xmlwf.1: xmlwf.xml
+if WITH_DOCBOOK
        ${DOCBOOK_TO_MAN} $<
        mv XMLWF.1 $@
+else
+       @echo 'ERROR: Configure with --with-docbook for "make dist".' 1>&2
+       @false
+endif
 
 # https://www.gnu.org/software/automake/manual/automake.html#What-Gets-Cleaned
 .PHONY: clean-local
@@ -49,4 +53,3 @@ EXTRA_DIST = \
     style.css \
     valid-xhtml10.png \
     xmlwf.xml
-endif