From adce665354d436b99efae5b92fb356893abf3da8 Mon Sep 17 00:00:00 2001 From: Jan Christoph Uhde Date: Fri, 29 Aug 2014 00:57:52 +0200 Subject: add: Makefile for web initialization --- pyload/web/Makefile | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 pyload/web/Makefile 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 -- cgit v1.2.3