Makefile @ fdf01e99fd51

Hugo's TOC support is fucked, reimplement in JS

God is dead.
author Steve Losh <steve@stevelosh.com>
date Mon, 10 Oct 2016 14:26:27 +0000
parents b6315c102a84
children 653f385c1bee
.PHONY: clean generate serve deploy

files := $(shell hg files)
less := $(shell ffind --literal '.less')
style := $(subst .less,.css,$(less))

static/media/css/%.css: static/media/css/%.less
	lessc $< > $@

public/index.html: $(files) $(style)
	hugo -t stevelosh

generate: public/index.html

clean:
	rm -rf public

serve:
	hugo server -t stevelosh

deploy: public/index.html
	rsync -avz ./public/ sl:/var/www/stevelosh.com