# HG changeset patch # User Steve Losh # Date 1476098131 0 # Node ID b6315c102a8432be482e01a889f23ddafe787681 # Parent 47ac3522d05985c61d83f6f71711f24cc1f3944d Unfuck the makefile diff -r 47ac3522d059 -r b6315c102a84 Makefile --- a/Makefile Mon Oct 10 11:08:17 2016 +0000 +++ b/Makefile Mon Oct 10 11:15:31 2016 +0000 @@ -1,14 +1,17 @@ .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 $< > $@ -generate: $(style) +public/index.html: $(files) $(style) hugo -t stevelosh +generate: public/index.html + clean: rm -rf public