aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2015-03-02 18:12:55 +0000
committerBryn M. Reeves <bmr@redhat.com>2015-03-02 18:12:55 +0000
commit1f819a18c1a96a7c46311c054be80aeb29040750 (patch)
tree41898e4ab92ab51f802d97ec589bbec2efe29636 /Makefile
parentb54a0f11ee4d47bde112ea45fe3e48db3cf22673 (diff)
downloadsos-1f819a18c1a96a7c46311c054be80aeb29040750.tar.gz
[docs] build docs by default
Build the docs 'html' and 'man' targets when the 'build' target is built. Signed-off-by: Bryn M. Reeves <bmr@redhat.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 5 insertions, 1 deletions
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