Add simplified API demo

This commit is contained in:
Tom Payne
2012-08-07 20:31:09 +02:00
parent 6cb362218b
commit 5062b71b3c
4 changed files with 39 additions and 1 deletions
+13 -1
View File
@@ -28,7 +28,19 @@ build/ol3.js: $(SRC)
( echo "goog.require('goog.dom');" ; find src/ol -name \*.js | xargs grep -rh ^goog.provide | sort | uniq | sed -e 's/provide/require/g' ) > $@
.PHONY: demos
demos: demos/side-by-side
demos: demos/api1 demos/side-by-side
.PHONY: demos/api1
demos/api1: \
build/ol3-api.js \
demos/api1/build.html \
demos/api1/debug.html
demos/api1/build.html: demos/api1/index.html.in
sed -e 's|@SRC@|../../build/ol3-api.js|' $< > $@
demos/api1/debug.html: demos/api1/index.html.in
sed -e 's|@SRC@|http://localhost:9810/compile?id=ol3-api|' $< > $@
.PHONY: demos/side-by-side
demos/side-by-side: \