diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 10 |
1 files changed, 9 insertions, 1 deletions
@@ -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 \ |