Makefile @ b6315c102a84

Unfuck the makefile
author Steve Losh <steve@stevelosh.com>
date Mon, 10 Oct 2016 11:15:31 +0000
parents 954bb5f0facd
children fdf01e99fd51
.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
	rsync -avz ./public/ sl:/var/www/stevelosh.com