Update Makefile

This commit is contained in:
Otto Winter 2018-06-05 21:07:27 +02:00
parent 9de6037c7c
commit f9e8305ad7
No known key found for this signature in database
GPG Key ID: DB66C0BE6013F97E
1 changed files with 5 additions and 1 deletions

View File

@ -21,9 +21,13 @@ minifyhtml: html
doxyg:
ESPHOMELIB_PATH=$(ESPHOMELIB_PATH) doxygen Doxygen
fixdeploy: cleanhtml doxyg html minifyhtml
copypdf:
cp $(BUILDDIR)/latex/$(SPHINXPROJ).pdf $(BUILDDIR)/esphomelib.pdf
fixdeploy: copypdf cleanhtml doxyg html minifyhtml
touch "$(BUILDDIR)/html/.nojekyll"
echo "esphomelib.com" >"$(BUILDDIR)/html/CNAME"
cp $(BUILDDIR)/esphomelib.pdf $(BUILDDIR)/latex/$(SPHINXPROJ).pdf
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"