Makefile 433 B

12345678910111213141516171819202122232425262728
  1. FENNEL = /usr/local/bin/fennel
  2. PG = lua pg.lua
  3. EMACS = emacs --no-init --script ox.el
  4. CSS-FILE = main.2.css
  5. all: pg.lua assets main-pages articles
  6. .PHONY: all
  7. assets: img styles
  8. cp -r styles img www/
  9. mv www/styles/main.css www/styles/$(CSS-FILE)
  10. pg.lua: pg.fnl
  11. $(FENNEL) --compile pg.fnl > pg.lua
  12. main-pages:
  13. $(MAKE) -C org
  14. articles:
  15. $(MAKE) -C org/articles/
  16. init:
  17. mkdir ./www
  18. mkdir ./www/articles
  19. clean:
  20. rm -rf ./www