From 1f819a18c1a96a7c46311c054be80aeb29040750 Mon Sep 17 00:00:00 2001 From: "Bryn M. Reeves" Date: Mon, 2 Mar 2015 18:12:55 +0000 Subject: [docs] build docs by default Build the docs 'html' and 'man' targets when the 'build' target is built. Signed-off-by: Bryn M. Reeves --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index df264536..2d643df8 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,7 @@ MINOR := $(shell echo $(VERSION) | cut -f 2 -d '.') RELEASE := $(shell echo `awk '/^Release:/ {gsub(/\%.*/,""); print $2}' sos.spec`) REPO = https://github.com/sosreport/sos -SUBDIRS = po sos sos/plugins sos/policies +SUBDIRS = po sos sos/plugins sos/policies docs PYFILES = $(wildcard *.py) # OS X via brew # MSGCAT = /usr/local/Cellar/gettext/0.18.1.1/bin/msgcat @@ -30,6 +30,10 @@ DEB_ARCHIVE_DIR = $(DIST_BUILD_DIR)/$(NAME)report-$(VERSION) SRC_BUILD = $(DIST_BUILD_DIR)/sdist PO_DIR = $(SRC_BUILD)/sos/po +.PHONY: docs +docs: + make -C docs html man + build: for d in $(SUBDIRS); do make -C $$d; [ $$? = 0 ] || exit 1 ; done -- cgit