Skip to content

Commit 1456a7b

Browse files
committed
fix doc Makefile
1 parent c6dd4ff commit 1456a7b

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

doc/Makefile

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
# Makefile for Sphinx documentation
22
#
3+
WATCH_FILES= find .. -type f -not -path '*/\.*' | grep -i '.*[.]rst\|CHANGES\|TODO\|.*conf\.py' 2> /dev/null
34
PYVERSION=$(shell python -c "import sys;v=sys.version_info[0];sys.stdout.write(str(v))")
45
HTTP_PORT = 8031
56

@@ -158,17 +159,15 @@ checkbuild:
158159
rm -rf $(BUILDDIR)
159160
$(SPHINXBUILD) -n -q ./ $(BUILDDIR)
160161

161-
WATCH_FILES= find .. -type f -not -path '*/\.*' | grep -i '.*[.]rst\|CHANGES\|TODO\|.*conf\.py' 2> /dev/null
162-
163162
watch:
164163
if command -v entr > /dev/null; then ${WATCH_FILES} | entr -c $(MAKE) html; else $(MAKE) html; fi
165164

166165
serve:
167-
@echo '================================================='
166+
@echo '=============================================================='
168167
@echo
169168
@echo 'docs server running at http://0.0.0.0:${HTTP_PORT}/_build/html'
170169
@echo
171-
@echo '================================================='
170+
@echo '=============================================================='
172171
@if test ${PYVERSION} -eq 2; then $(MAKE) serve_py2; else make serve_py3; fi
173172

174173
serve_py2:

0 commit comments

Comments
 (0)