Update Makefile

This commit is contained in:
Otto Winter 2018-06-03 23:26:30 +02:00
parent 08151c0b55
commit 965f7bdf1f
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E

View File

@ -21,17 +21,16 @@ minifyhtml: html
doxyg:
ESPHOMELIB_PATH=$(ESPHOMELIB_PATH) doxygen Doxygen
deploy: cleanhtml doxyg html minifyhtml
pdf:
-yes '' | make latexpdf
cp $(BUILDDIR)/latex/$(SPHINXPROJ).pdf $(BUILDDIR)/html/_static/esphomelib.pdf
deploy: cleanhtml doxyg html pdf minifyhtml
touch "$(BUILDDIR)/html/.nojekyll"
echo "esphomelib.com" >"$(BUILDDIR)/html/CNAME"
cd "$(BUILDDIR)/html" && git add --all && git commit -m "Deploy to gh-pages"
@printf "Run \033[0;36mcd $(BUILDDIR)/html && git push origin gh-pages\033[0m to deploy\n"
deploypdf: html
-yes '' | make latexpdf
cp $(BUILDDIR)/latex/$(SPHINXPROJ).pdf $(BUILDDIR)/html/_static/esphomelib.pdf
make deploy
help:
$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)