feat: extend makefile
This commit is contained in:
parent
cad768627f
commit
2758e95bc5
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,3 +1,4 @@
|
|||||||
|
bundle
|
||||||
build
|
build
|
||||||
venv
|
venv
|
||||||
*.*~
|
*.*~
|
||||||
|
@ -16,5 +16,18 @@ help:
|
|||||||
|
|
||||||
# Catch-all target: route all unknown targets to Sphinx using the new
|
# Catch-all target: route all unknown targets to Sphinx using the new
|
||||||
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
|
||||||
%: Makefile
|
%: makefile
|
||||||
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
|
||||||
|
|
||||||
|
.PHONY: sphinx bundle
|
||||||
|
|
||||||
|
clean:
|
||||||
|
-rm -rf build/*
|
||||||
|
|
||||||
|
sphinx:
|
||||||
|
$(MAKE) singlehtml latexpdf
|
||||||
|
|
||||||
|
bundle: sphinx
|
||||||
|
-mkdir bundle
|
||||||
|
cp build/latex/*.pdf bundle/
|
||||||
|
rsync -av --delete build/singlehtml/ bundle/html
|
Loading…
Reference in New Issue
Block a user