Makefile @ a52d61eb7e85

Timestamp
author Steve Losh <steve@stevelosh.com>
date Mon, 07 Mar 2016 13:44:20 +0000
parents 749ec5a03533
children 2d9281a1f7e7
.PHONY: clean generate regen serve deploy

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

generate: $(bundles)
	hyde -g -s .

clean:
	rm -rf ./deploy

serve:
	hyde -w -s . -k

regen: clean generate

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

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

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

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