Makefile @ e2b8f5dc9ae4

Just Use Makeā„¢
author Steve Losh <steve@stevelosh.com>
date Sun, 28 Feb 2016 11:51:50 +0000
parents (none)
children 749ec5a03533
.PHONY: all clean generate regen serve deploy

wisps := $(shell ffind --literal '.wisp')
javascripts := $(subst .wisp,.js,$(wisps))

all: media/js/terrain1.js

media/js/wisp/%.js: media/js/wisp/%.wisp
	cat $< | wisp > $@

media/js/terrain1.js: $(javascripts)
	browserify media/js/wisp/terrain1.js -o $@

clean:
	rm -rf ./deploy

generate: all
	hyde -g -s .

serve:
	hyde -w -s . -k

regen: clean generate

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