0ad4f49
From 28015d8ae9831c272d16ce0ae2a57ccff3b445c7 Mon Sep 17 00:00:00 2001
0ad4f49
From: Brian Coca <brian.coca+git@gmail.com>
0ad4f49
Date: Tue, 13 Feb 2018 17:43:26 -0500
0ad4f49
Subject: [PATCH] ensure cli dir exists before saving files to it
0ad4f49
0ad4f49
---
0ad4f49
 docs/docsite/Makefile | 1 +
0ad4f49
 1 file changed, 1 insertion(+)
0ad4f49
0ad4f49
diff --git a/docs/docsite/Makefile b/docs/docsite/Makefile
0ad4f49
index 3bb3c454c35..4b5d8d9d203 100644
0ad4f49
--- a/docs/docsite/Makefile
0ad4f49
+++ b/docs/docsite/Makefile
0ad4f49
@@ -74,6 +74,7 @@ clean:
0ad4f49
 
0ad4f49
 # TODO: make generate_man output dir cli option
0ad4f49
 cli: $(GENERATE_CLI)
0ad4f49
+	mkdir -p rst/cli
0ad4f49
 	PYTHONPATH=../../lib $(GENERATE_CLI) --template-file=../templates/cli_rst.j2 --output-dir=rst/cli/ --output-format rst ../../lib/ansible/cli/*.py
0ad4f49
 
0ad4f49
 keywords: $(FORMATTER) ../templates/playbooks_keywords.rst.j2