Skip to content

Commit

Permalink
add livenew in Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
chyyuu committed Jul 17, 2022
1 parent c7e6288 commit a2db526
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@
# from the environment for the first two.
SPHINXOPTS ?= -W
SPHINXBUILD ?= sphinx-build
SPHINXAUTOBUILD ?= sphinx-autobuild
SOURCEDIR = source
BUILDDIR = build

# Put it first so that "make" without argument is like "make help".
help:
@$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)

.PHONY: help Makefile deploy
.PHONY: help Makefile deploy livenew

# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
Expand All @@ -22,6 +23,10 @@ help:
view:
make html && firefox build/html/index.html

# http://127.0.0.1:8000
liveview:
@$(SPHINXAUTOBUILD) "$(SOURCEDIR)" "$(BUILDDIR)/html"

deploy:
@make clean
@make html
Expand Down

0 comments on commit a2db526

Please sign in to comment.