summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-04-06 19:32:58 -0400
committerAlex Xu <alex_y_xu@yahoo.ca>2014-04-06 19:32:58 -0400
commit6a50d79523cf215001cdd55c74c040bd410775df (patch)
treec7926f1c46b5b68f43e675beddad14d85851210f /Makefile
parentcc4e6587df70f79de8fb23fceefce89d91e2a4bb (diff)
downloadhtml5ks-6a50d79523cf215001cdd55c74c040bd410775df.tar.xz
html5ks-6a50d79523cf215001cdd55c74c040bd410775df.zip
stuff
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 3d20bb2..c606599 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
null :=
SPACE := $(null) $(null)
-all: js json video audio images
+all: html js json video audio images
Makefile: Makefile.inc
@@ -12,6 +12,14 @@ include Makefile.inc
UGLIFYJS := node_modules/.bin/uglifyjs $(UGLIFYJSFLAGS)
+# === HTML ===
+
+html: www/index.html
+
+www/index.html: www/index.html.dist
+ $(if $(DEBUG), sed -e 's:$(subst www/,,$(JSOUT)):$(subst $(SPACE),"></script><script src=",$(subst www/,,$(JS))):' $^ > $@, \
+ cp $^ $@)
+
# === JS ===
MYJS := www/js/html5ks.js www/js/menu.js www/js/api.js \