You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

40 lines
772B

  1. .PHONY: help all local deploy install clean build test sync post-test
  2. SITENAME=juancanham.com
  3. #TARGET=/var/www/html/simpler-dash/
  4. TARGET=home:/tmp/simpler-dash/
  5. linkchecker=linkchecker --check-extern
  6. help:
  7. @echo 'all: local deploy'
  8. @echo 'local: install clean build'
  9. @echo 'deploy: test sync post-test'
  10. all: local deploy
  11. local: install build
  12. deploy: test sync post-test
  13. install:
  14. pip install -r requirements.txt
  15. clean:
  16. rm -r dist/* || true
  17. build: clean
  18. cp -v *.html *.jpg *.ico dist/
  19. cp -rv css/ webfonts/ dist/
  20. for file in ToS Privacy; do markdown_py $${file}.md > dist/$${file} ; done
  21. test:
  22. $(linkchecker) dist/index.html
  23. sync:
  24. rsync -vr --delete dist/ $(TARGET)
  25. post-test:
  26. $(linkchecker) https://$(SITENAME)
  27. wget http://${SITENAME} -O /dev/null