bug-librejs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug-librejs] [PATCH] build: Use 'jpm' from the "node_modules" directory


From: Mathieu Lirzin
Subject: [Bug-librejs] [PATCH] build: Use 'jpm' from the "node_modules" directory
Date: Tue, 13 Jun 2017 06:34:51 +0200

This avoids requiring 'jpm' to be installed globally.
---
 Makefile.in | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/Makefile.in b/Makefile.in
index 35e9692..e66994f 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -50,6 +50,8 @@ enabled already, you may, inside your Mozilla-browser, need 
to go in \
 the menu in Tools > Add-ons and click enable where you see LibreJS. \
 "
 
+NODE_BIN = ./node_modules/.bin
+JPM = $(NODE_BIN)/jpm
 JPM_ARGS =
 
 all: xpi
@@ -109,7 +111,7 @@ xpi: librejs.xpi
 
 librejs.xpi: jpm
        npm i
-       jpm xpi
+       $(JPM) xpi
 
 .PHONY: all install install-pdf install-dvi install-html uninstall clean \
        distclean info pdf dvi html xpi txt
-- 
2.9.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]