Don't build the manpage unless there's a working Ruby setup.

This commit is contained in:
Stephen Dolan committed 2013-05-09 15:22:38 +01:00
1 parent d75414bc94
commit 12d2d4d1f5
3 files changed
+31 -8

No files matched your search

+13
View File
@@ -49,8 +49,19 @@ TEST_LOG_COMPILER = ${srcdir}/tests/run
### Building the manpage
man_MANS = jq.1
.PHONY: real_docs
if ENABLE_DOCS
jq.1: $(srcdir)/docs/content/3.manual/manual.yml
( cd ${abs_srcdir}/docs; rake manpage ) > $@ || { rm -f $@; false; }
real_docs:
true
else
jq.1: jq.1.default
cp $^ $@
real_docs:
@echo "Cannot build full manpage" > /dev/stderr
false
endif
@@ -63,6 +74,8 @@ docs/site.yml: configure.ac
install-binaries: $(BUILT_SOURCES)
$(MAKE) $(AM_MAKEFLAGS) install-exec
# Ensure "make dist" fails when we can't build the real manpage
dist-hook: real_docs
# setup is only used by distribution developers, not package developers.
# Still, as a matter of allowing patching, its not a bad idea to distribute