Makefile 394 B

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