diff options
author | Florian Dold <florian.dold@gmail.com> | 2019-08-19 14:08:14 +0200 |
---|---|---|
committer | Florian Dold <florian.dold@gmail.com> | 2019-08-19 14:08:14 +0200 |
commit | 10df69131f70c63a94247edf38f40ba5a31ae54e (patch) | |
tree | 111bcc00eab8a268c7207b2eda28c8517e0641f6 /Makefile | |
parent | 54fec752796846389ae187834c19e5720a1c43a8 (diff) |
adhere better to GNU guidlines
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 15 insertions, 1 deletions
@@ -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 + + |