Skip to content

Commit

Permalink
add a switch for auto doc building
Browse files Browse the repository at this point in the history
Change-Id: Ib59fc8b213015fd21d32bf731a67719c64d7d3ec
Signed-off-by: Bart Van Der Meerssche <[email protected]>
  • Loading branch information
Bart Van Der Meerssche committed Jul 3, 2014
1 parent 59eb5a6 commit b582956
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
8 changes: 8 additions & 0 deletions config.mk
Original file line number Diff line number Diff line change
Expand Up @@ -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
# =============================================================================
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b582956

Please sign in to comment.