feat: extend makefile

This commit is contained in:
dancingCycle 2022-12-15 15:21:31 +01:00
parent cad768627f
commit 2758e95bc5
2 changed files with 15 additions and 1 deletions

1
.gitignore vendored
View File

@ -1,3 +1,4 @@
bundle
build
venv
*.*~

View File

@ -16,5 +16,18 @@ help:
# Catch-all target: route all unknown targets to Sphinx using the new
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).
%: Makefile
%: makefile
@$(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