summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorBrian Coca <brian.coca+git@gmail.com>2018-02-05 22:54:10 -0500
committerBrian Coca <brian.coca+git@gmail.com>2018-02-07 12:35:37 -0500
commit531d7f81b6f198935740781a58b4ecb9cc51e83f (patch)
treea035efea77f2f825b522920e1d6ddb346186a41a /Makefile
parent02a7e9fb88997583ebb013641d6589da73144a28 (diff)
downloadansible-531d7f81b6f198935740781a58b4ecb9cc51e83f.tar.gz
add manpage install target
(cherry picked from commit 8e8a29f20a5b250947e00613033775ddd952430f) (cherry picked from commit f572703efe65b8efedf3792d342ee3c09d9ba735)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index cf520b0e0a..e1939271f7 100644
--- a/Makefile
+++ b/Makefile
@@ -17,11 +17,10 @@
NAME = ansible
OS = $(shell uname -s)
+PREFIX ?= '/usr/local'
-# Manpages are currently built with asciidoc -- would like to move to markdown
# This doesn't evaluate until it's called. The -D argument is the
# directory of the target file ($@), kinda like `dirname`.
-
MANPAGES ?= $(patsubst %.asciidoc.in,%,$(wildcard ./docs/man/man1/ansible*.1.asciidoc.in))
ifneq ($(shell which a2x 2>/dev/null),)
ASCII2MAN = a2x -L -D $(dir $@) -d manpage -f manpage $<
@@ -209,6 +208,10 @@ python:
install:
$(PYTHON) setup.py install
+install_manpages:
+ gzip -9 $(wildcard ./docs/man/man1/ansible*.1)
+ cp $(wildcard ./docs/man/man1/ansible*.1.gz) $(PREFIX)/man/man1/
+
.PHONY: sdist
sdist: clean docs
$(PYTHON) setup.py sdist