diff options
author | Alex Xu <alex_y_xu@yahoo.ca> | 2014-04-06 19:32:58 -0400 |
---|---|---|
committer | Alex Xu <alex_y_xu@yahoo.ca> | 2014-04-06 19:32:58 -0400 |
commit | 6a50d79523cf215001cdd55c74c040bd410775df (patch) | |
tree | c7926f1c46b5b68f43e675beddad14d85851210f /Makefile | |
parent | cc4e6587df70f79de8fb23fceefce89d91e2a4bb (diff) | |
download | html5ks-6a50d79523cf215001cdd55c74c040bd410775df.tar.xz html5ks-6a50d79523cf215001cdd55c74c040bd410775df.zip |
stuff
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 \ |