Skip to content

Instantly share code, notes, and snippets.

@basus
Created June 27, 2019 20:23
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save basus/e524fed3a305fe4235ba03eab68c634d to your computer and use it in GitHub Desktop.
Save basus/e524fed3a305fe4235ba03eab68c634d to your computer and use it in GitHub Desktop.
Makefile for my pollen-based website
.POSIX:
default: render publish
css: css/theme.css
top: index.html template.html error.html css js/
about: about/index.html about/pollen.rkt
publications: research/publications/index.html research/publications/pollen.rkt
research: research/index.html publications
render: top about research
publish:
raco pollen publish $(shell pwd) ~/www/basus
%.css: %.css.pp pollen.rkt
raco pollen render $<
%.html: %.html.p pollen.rkt
raco pollen render $?
%.html: %.html.pm template.html pollen.rkt
raco pollen render $<
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment