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.

29 lines
557B

  1. export LC_ALL := C.UTF-8
  2. export LANG := en_US.UTF-8
  3. export LANGUAGE := en_US.UTF-8
  4. .PHONY: vendor localserve clean distclean deploy build
  5. default: localserve
  6. build: _site
  7. _includes/gitrev.html:
  8. git rev-parse HEAD | colrm 9 > $@
  9. _site: vendor _includes/gitrev.html
  10. JEKYLL_ENV=production bundle exec jekyll build
  11. find ./_site
  12. vendor:
  13. bundle install --path vendor/bundle
  14. localserve: vendor _includes/gitrev.html
  15. JEKYLL_ENV=production bundle exec jekyll serve --incremental
  16. clean:
  17. rm -rf tmp _site .bundle vendor
  18. distclean: clean
  19. rm -rfv vendor