From e1d07bb81e160d5cbcfd221406f40f16a2fa5c30 Mon Sep 17 00:00:00 2001 From: Alex Xu Date: Sat, 8 Mar 2014 15:09:07 -0500 Subject: stuff --- Makefile | 10 ++++++---- README.rst | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 0a344e4..f1af3b1 100644 --- a/Makefile +++ b/Makefile @@ -105,8 +105,6 @@ CIMAGE := $(WEBP) $(CTC_ANIM) www/favicon.ico images: $(CIMAGE) -$(DUMP)/ui/ctc_strip.webp: $(DUMP)/ui/ctc_strip.png - define png2webp = $(CWEBP) -q 99 "$<" -o "$@" $(PNGQUANT) --force --speed 1 --ext .png "$<" @@ -132,12 +130,15 @@ $(DUMP)/ui/bt-cf-unchecked.webp $(DUMP)/ui/bt-cf-checked.webp: %.webp: %.png $(DUMP)/ui/ctc_strip-0.png: $(CTC_ANIM_SRC) $(CONVERT) "$<" -crop 16x16 $(DUMP)/ui/ctc_strip-%d.png +$(DUMP)/ui/ctc_strip.webp: $(DUMP)/ui/ctc_strip.png + @ + $(DUMP)/ui/ctc_strip-%.png: $(CTC_ANIM_SRC) $(DUMP)/ui/ctc_strip-0.png @ # depend on webp to wait for recompression $(DUMP)/ui/ctc_anim.png: $(CTC_ANIM_TMP_WEBP) - $(APNGASM) "$@" $^ 3 100 + $(APNGASM) "$@" $(CTC_ANIM_TMP) 3 100 $(DUMP)/ui/ctc_anim.webp: $(CTC_ANIM_TMP_WEBP) $(WEBPMUX) -frame $(subst $(SPACE), +30 -frame ,$^) +30 -loop 0 -o "$@" @@ -187,8 +188,9 @@ space: $(RM) -r $(DUMP)/font $(RM) $(WAV) $(VIDEO) $(CTC_ANIM_TMP) $(CTC_ANIM_TMP_WEBP) $(JSOUT) $(JSOUT).map -watch: +dev: $(MAKE) + ./nginx.sh while inotifywait -r -e modify,delete,move --exclude="^\./\.git" --exclude="\.swp.?$$" .; do \ $(MAKE); \ done diff --git a/README.rst b/README.rst index 7ad7699..71601fc 100644 --- a/README.rst +++ b/README.rst @@ -72,6 +72,6 @@ Check Bugzilla for things that need to be done. https://bugzilla.happinessforme. See docs/ for the obvious. -Run ``make watch`` to automatically re-make when changes are made. +Run ``make dev`` to automatically start nginx and re-make when changes are made. .. _`Katawa Shoujo`: http://www.katawa-shoujo.com/ -- cgit v1.2.3-70-g09d2