From 324a7dc6a248b45c9b8d9025529f612d512095d6 Mon Sep 17 00:00:00 2001 From: Michael Vincerra Date: Sat, 15 Dec 2018 18:57:37 -0800 Subject: [PATCH] Modifies source/Makefile in order to: - Adds new 'py' directive with Bash script - Adds same Bash script under json directive - Invoke child Makefile in /scripts/_python - Execute bundle_lister.py - Provide 'py' directive for future Python scripts Signed-off-by: Michael Vincerra --- source/Makefile | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/source/Makefile b/source/Makefile index 655286aa..9e49b866 100644 --- a/source/Makefile +++ b/source/Makefile @@ -6,6 +6,7 @@ SPHINXOPTS = SPHINXBUILD = sphinx-build PAPER = BUILDDIR = _build +SCRIPTDIR = scripts/_python # User-friendly check for sphinx-build ifeq ($(shell which $(SPHINXBUILD) >/dev/null 2>&1; echo $$?), 1) @@ -56,6 +57,9 @@ html: @echo @echo "Build finished. The HTML pages are in $(BUILDDIR)/html." +py: + $(MAKE) -C $(SCRIPTDIR) py + dirhtml: $(SPHINXBUILD) -b dirhtml $(ALLSPHINXOPTS) $(BUILDDIR)/dirhtml @echo @@ -73,6 +77,7 @@ pickle: json: $(SPHINXBUILD) -b json $(ALLSPHINXOPTS) $(BUILDDIR)/json + $(MAKE) -C $(SCRIPTDIR) py @echo @echo "Build finished; now you can process the JSON files."