Blob Blame Raw
From 28015d8ae9831c272d16ce0ae2a57ccff3b445c7 Mon Sep 17 00:00:00 2001
From: Brian Coca <brian.coca+git@gmail.com>
Date: Tue, 13 Feb 2018 17:43:26 -0500
Subject: [PATCH] ensure cli dir exists before saving files to it

---
 docs/docsite/Makefile | 1 +
 1 file changed, 1 insertion(+)

diff --git a/docs/docsite/Makefile b/docs/docsite/Makefile
index 3bb3c454c35..4b5d8d9d203 100644
--- a/docs/docsite/Makefile
+++ b/docs/docsite/Makefile
@@ -74,6 +74,7 @@ clean:
 
 # TODO: make generate_man output dir cli option
 cli: $(GENERATE_CLI)
+	mkdir -p rst/cli
 	PYTHONPATH=../../lib $(GENERATE_CLI) --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst ../../lib/ansible/cli/*.py
 
 keywords: $(FORMATTER) ../templates/playbooks_keywords.rst.j2