summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAlex Xu <alex_y_xu@yahoo.ca>2014-01-30 09:12:30 -0500
committerAlex Xu <alex_y_xu@yahoo.ca>2014-01-30 09:14:03 -0500
commit5620c4768e8095a56e2b7372ecedd8747bf408b0 (patch)
tree446490a3b8fa06457794c51b10a1e8cee52020bf /Makefile
parent19bd1ce2ac46ba4a994519f00eb8e35f40624f00 (diff)
downloadhtml5ks-5620c4768e8095a56e2b7372ecedd8747bf408b0.tar.xz
html5ks-5620c4768e8095a56e2b7372ecedd8747bf408b0.zip
improve setup, README
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 12 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 7c5cb1f..0dd42c2 100644
--- a/Makefile
+++ b/Makefile
@@ -16,7 +16,12 @@ UGLIFYJS ?= uglifyjs
DUMP ?= www/dump
-all: video audio images js
+all: .modules video audio images js
+
+# === GIT SUBMODULES ===
+.modules: .gitmodules
+ git submodule update --init
+ touch .modules
# === VIDEO ===
@@ -74,7 +79,9 @@ CTC_ANIM_TMP := $(DUMP)/ui/ctc_strip-0.png $(DUMP)/ui/ctc_strip-1.png $(DUMP)/ui
CTC_ANIM_TMP_WEBP := $(patsubst %.png,%.webp,$(CTC_ANIM_TMP))
CTC_ANIM := $(DUMP)/ui/ctc_anim.png $(DUMP)/ui/ctc_anim.webp
-images: $(WEBP) $(CTC_ANIM) www/favicon.ico
+CIMAGE := $(WEBP) $(CTC_ANIM) www/favicon.ico
+
+images: $(CIMAGE)
$(DUMP)/ui/ctc_strip.webp: $(DUMP)/ui/ctc_strip.png
@@ -127,7 +134,7 @@ www/js/all.min.js: $(JS)
# === MISC ===
clean:
- $(RM) $(CVIDEO) $(CAUDIO) $(WEBP) www/favicon.ico
+ $(RM) $(CVIDEO) $(CAUDIO) $(CIMAGE)
jshint: $(JSCODE)
jshint $^
@@ -135,7 +142,8 @@ jshint: $(JSCODE)
space:
find $(DUMP)/bgm $(DUMP)/sfx $(DUMP)/video \( -name '*.wav' -o -name '*.mkv' \) -delete
$(RM) -r $(DUMP)/font
- $(RM) $(DUMP)/ui/ctc_strip-*.*
+ $(RM) $(CTC_ANIM_TMP) $(CTC_ANIM_TMP_WEBP)
+ $(RM) www/js/all.min.js www/js/all.min.js.map
watch:
while inotifywait -r -e modify,delete,move --exclude="^\./\.git" --exclude="\.swp$$" .; do \