Makefile 478 B

12345678910111213141516171819202122232425262728
  1. all: demo tpl css settings
  2. python src/microblog.py ./template.tpl ./content.txt > result.html
  3. check:
  4. python src/check-settings.py
  5. # first time run only
  6. tpl:
  7. cp ./example/default.tpl ./template.tpl
  8. css:
  9. cp ./example/timeline.css ./timeline.css
  10. demo:
  11. cp ./example/demo.txt ./content.txt
  12. settings:
  13. cp ./example/settings.toml ./settings.toml
  14. .PHONY: clean
  15. clean:
  16. rm ./pages/*.html
  17. rm ./tags/*/*.html
  18. rm ./webring/*.html
  19. rmdir ./pages ./tags/* ./tags ./webring