summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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 \