Makefile @ 954bb5f0facd

Update Makefile
author Steve Losh <steve@stevelosh.com>
date Fri, 07 Oct 2016 12:50:39 +0000
parents e7bc59b9ebda
children b6315c102a84
.PHONY: clean generate serve deploy

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

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

generate: $(style)
	hugo -t stevelosh

clean:
	rm -rf public

serve:
	hugo server -t stevelosh

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