aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 06241581e..efb3e7cb0 100644
--- a/Makefile
+++ b/Makefile
@@ -9,6 +9,7 @@ ava = node_modules/ava/cli.js
nyc = node_modules/nyc/bin/nyc.js
tslint = node_modules/tslint/bin/tslint
+-include config.mk
.PHONY: package-stable
package-stable: i18n
@@ -40,7 +41,6 @@ typedoc:
.PHONY: clean
clean:
- rm -rf build/
rm -rf dist/
.PHONY: check
@@ -70,3 +70,17 @@ i18n: yarn-install
done;
# generate .ts file containing all translations
$(gulp) po2js
+
+
+ifndef prefix
+.PHONY: install
+install:
+ @echo "no prefix configured, did you run ./configure?"
+else
+.PHONY: install
+install:
+ @echo "installing to" $(prefix)
+ npm install -g --prefix $(prefix) .
+endif
+
+