summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Dold <florian.dold@gmail.com>2019-08-19 14:08:14 +0200
committerFlorian Dold <florian.dold@gmail.com>2019-08-19 14:08:14 +0200
commit10df69131f70c63a94247edf38f40ba5a31ae54e (patch)
tree111bcc00eab8a268c7207b2eda28c8517e0641f6 /Makefile
parent54fec752796846389ae187834c19e5720a1c43a8 (diff)
downloadwallet-core-10df69131f70c63a94247edf38f40ba5a31ae54e.tar.gz
wallet-core-10df69131f70c63a94247edf38f40ba5a31ae54e.tar.bz2
wallet-core-10df69131f70c63a94247edf38f40ba5a31ae54e.zip
adhere better to GNU guidlines
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
+
+