From 1ac188c90619b4619c7333c57795f4a6fe5d0536 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89ric=20Lemoine?= Date: Tue, 16 Oct 2012 21:56:45 +0200 Subject: [PATCH] Add a hostexamples target to Makefile This target copies the ol built files, examples, and loader script to the build/gh-pages directory, making it possible to host our examples on gh-pages. --- Makefile | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Makefile b/Makefile index f56d48150c..bcccf0b198 100644 --- a/Makefile +++ b/Makefile @@ -109,6 +109,14 @@ build/jsdoc-$(BRANCH)-timestamp: $(SRC) $(shell find doc/template -type f) $(JSDOC) -t doc/template -r src -d build/gh-pages/$(BRANCH)/apidoc touch $@ +.PHONY: hostexamples +hostexamples: build examples + mkdir -p build/gh-pages/$(BRANCH)/examples + mkdir -p build/gh-pages/$(BRANCH)/build + cp $(EXAMPLES) $(subst .html,.js,$(EXAMPLES)) examples/style.css build/gh-pages/$(BRANCH)/examples/ + cp build/loader_hosted_examples.js build/gh-pages/$(BRANCH)/examples/loader.js + cp build/ol.js build/ol.css build/gh-pages/$(BRANCH)/build/ + .PHONY: test test: $(INTERNAL_SRC) $(PHANTOMJS) test/phantom-jasmine/run_jasmine_test.coffee test/ol.html