add a switch for auto doc building

Change-Id: Ib59fc8b213015fd21d32bf731a67719c64d7d3ec
Signed-off-by: Bart Van Der Meerssche <bart@flukso.net>
This commit is contained in:
Bart Van Der Meerssche 2014-07-03 22:27:54 +02:00
parent 59eb5a65bf
commit b582956142
2 changed files with 9 additions and 1 deletions

View File

@ -6,7 +6,7 @@ DISTDIRS=man
.PHONY : all mosquitto docs binary clean reallyclean test install uninstall dist sign copy
all : mosquitto docs
all : $(MAKE_ALL)
docs :
set -e; for d in ${DOCDIRS}; do $(MAKE) -C $${d}; done

View File

@ -73,6 +73,9 @@ WITH_SRV:=yes
# Use elliptic keys in broker
WITH_EC:=yes
# Build man page documentation by default.
WITH_DOCS:=yes
# =============================================================================
# End of user configuration
# =============================================================================
@ -218,6 +221,11 @@ ifeq ($(WITH_EC),yes)
BROKER_CFLAGS:=$(BROKER_CFLAGS) -DWITH_EC
endif
MAKE_ALL:=mosquitto
ifeq ($(WITH_DOCS),yes)
MAKE_ALL:=$(MAKE_ALL) docs
endif
INSTALL?=install
prefix=/usr/local
mandir=${prefix}/share/man