summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-08-29 09:19:18 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2014-08-29 09:19:18 +0200
commit2884d6f8ef3d1dacfd65c38b15157238ba0555b4 (patch)
tree465786f96c154c8d7f2bd6569ac4e9fbef5e2624
parentpatching _getdate method (diff)
parentadd: Makefile for web initialization (diff)
downloadpyload-2884d6f8ef3d1dacfd65c38b15157238ba0555b4.tar.xz
Merge pull request #720 from ObiWahn/master
add: Makefile for web initialization
-rw-r--r--pyload/web/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/pyload/web/Makefile b/pyload/web/Makefile
new file mode 100644
index 000000000..7338cdb40
--- /dev/null
+++ b/pyload/web/Makefile
@@ -0,0 +1,19 @@
+SHELL=/bin/bash
+WRONG_PATH := $(shell type node &>/dev/null || type nodejs &>/dev/null && ln -s /usr/bin/nodejs node &>/dev/null && echo "yes")
+PATH := ${PATH}:.
+
+init-web: prepare
+ npm install
+ npm install bower grunt-cli
+ node_modules/bower/bin/bower install
+ $(MAKE) update-web
+
+update-web: prepare
+ node_modules/grunt-cli/bin/grunt build
+
+prepare:
+ifeq ($(WRONG_PATH),yes)
+ @echo "creating node link in local dir"
+endif
+
+.PHONY: prepare