Skip to content

Commit

Permalink
docs: Allow make to be run in other directories.
Browse files Browse the repository at this point in the history
Signed-off-by: Tim 'mithro' Ansell <me@mith.ro>
  • Loading branch information
mithro committed Apr 5, 2019
1 parent 49a2856 commit 5428bbf
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions docs/Makefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Minimal makefile for Sphinx documentation
#

MAKEDIR := $(dir $(lastword $(MAKEFILE_LIST)))

# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
Expand All @@ -20,8 +22,8 @@ livehtml:

# Update fuzzer / minitest markdown links.
fuzzers-links:
@cd db_dev_process/fuzzers; rm -f *.md
@cd db_dev_process/fuzzers; \
@cd $(MAKEDIR)/db_dev_process/fuzzers && rm -f *.md
@cd $(MAKEDIR)/db_dev_process/fuzzers && \
for i in ../../../fuzzers/*; do \
n=$$(basename $$i | sed -e's/^[0-9][0-9][0-9]-//'); \
if [ ! -d $$i ]; then \
Expand All @@ -39,8 +41,8 @@ fuzzers-links:
done

minitests-links:
@cd db_dev_process/minitests; rm -f *.md
@cd db_dev_process/minitests; \
@cd $(MAKEDIR)/db_dev_process/minitests && rm -f *.md
@cd $(MAKEDIR)/db_dev_process/minitests && \
for i in ../../../minitests/*; do \
n=$$(basename $$i | sed -e's/^[0-9][0-9][0-9]-//'); \
if [ ! -d $$i ]; then \
Expand Down

0 comments on commit 5428bbf

Please sign in to comment.