b6315c102a84

Unfuck the makefile
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Mon, 10 Oct 2016 11:15:31 +0000
parents 47ac3522d059
children fdf01e99fd51
branches/tags (none)
files Makefile

Changes

--- 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