online_ide: make can construct www/
authorJean Privat <jean@pryen.org>
Wed, 2 Jul 2014 16:00:36 +0000 (12:00 -0400)
committerJean Privat <jean@pryen.org>
Wed, 2 Jul 2014 16:00:36 +0000 (12:00 -0400)
Signed-off-by: Jean Privat <jean@pryen.org>

contrib/online_ide/Makefile

index c4bc9b2..d2e31e0 100644 (file)
@@ -1,9 +1,18 @@
+
+ACE_BUILDS ?= ../../../ace-builds/
+
 default:
        ../../bin/nitg --global sources/nit/pnacl_nit.nit -I ../../src/
        cp pnacl_nit/pnacl_nit.pexe www/pnacl/ -f
        rm -rf pnacl_nit/
        rm -rf .nit_compile
 
+build-www:
+       rm -rf www/src
+       cp -r $(ACE_BUILDS)/src www/
+       cp setup/mode-nit.js www/src/
+       cp setup/nit.js www/src/snippets/
+
 HTTPD_PY := python $(NACL_SDK_ROOT)/tools/httpd.py
 serve:
        cd www/; \