[Pkg-javascript-commits] [sockjs-client] 230/434: Make `make serve` twice faster - compile coffee before forking server process.

Tonnerre Lombard tonnerre-guest at moszumanska.debian.org
Wed Jan 8 00:47:15 UTC 2014


This is an automated email from the git hooks/post-receive script.

tonnerre-guest pushed a commit to branch master
in repository sockjs-client.

commit 9e9cbce5372c5624afb9ea403e96253202b60fc7
Author: Marek Majkowski <majek04 at gmail.com>
Date:   Wed Nov 30 17:42:03 2011 +0000

    Make `make serve` twice faster - compile coffee before forking server process.
---
 Makefile | 27 +++++++++++++++------------
 1 file changed, 15 insertions(+), 12 deletions(-)

diff --git a/Makefile b/Makefile
index 5643724..0d50efa 100644
--- a/Makefile
+++ b/Makefile
@@ -23,9 +23,11 @@ tests/html/lib/%.js: tests/html/src/%.coffee
 	@coffee -v > /dev/null
 	coffee -o tests/html/lib/ -c --bare $<
 
+build_tests: tests/html/lib/sockjs.js tests/html/lib/tests.js \
+		tests/html/lib/domtests.js
+
 test: tests
-tests: tests/html/lib/sockjs.js tests/html/lib/tests.js \
-		tests/html/lib/domtests.js 
+tests: build_tests
 	node tests/server.js
 
 
@@ -35,16 +37,17 @@ serve:
 		rm .pidfile.pid;			\
 	fi
 
-	@while [ 1 ]; do				\
-	        echo " [*] Running http server";	\
-	        make test &				\
-	        SRVPID=$$!;				\
-	        echo $$SRVPID > .pidfile.pid;		\
-	        echo " [*] Server pid: $$SRVPID";	\
-	    inotifywait -r -q -e modify . ../sockjs-node;\
-	    kill `cat .pidfile.pid`;			\
-	    rm -f .pidfile.pid;				\
-	    sleep 0.1;					\
+	@while [ 1 ]; do					\
+		make build_tests;				\
+		echo " [*] Running http server";		\
+		make test &					\
+		SRVPID=$$!;					\
+		echo $$SRVPID > .pidfile.pid;			\
+		echo " [*] Server pid: $$SRVPID";		\
+		inotifywait -r -q -e modify . ../sockjs-node;	\
+		kill `cat .pidfile.pid`;			\
+		rm -f .pidfile.pid;				\
+		sleep 0.1;					\
 	done
 
 clean:

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/sockjs-client.git



More information about the Pkg-javascript-commits mailing list