Makefile @ 7e805d0a00a3

Proof and publish
author Steve Losh <steve@stevelosh.com>
date Thu, 05 Jan 2017 16:39:56 +0000
parents b65cd309d469
children 6e60d0b96c6e
.PHONY: clean generate serve deploy css

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

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

css: $(style)

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

generate: public/index.html

clean:
	rm -rf public

serve:
	hugo server -t stevelosh -D

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