[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-wallet-core] 02/03: build system: convenience target to install C
From: |
gnunet |
Subject: |
[taler-wallet-core] 02/03: build system: convenience target to install CLIs |
Date: |
Fri, 10 Feb 2023 00:07:57 +0100 |
This is an automated email from the git hooks/post-receive script.
dold pushed a commit to branch master
in repository wallet-core.
commit ebb3e7e3386b3d5e6372f17798932718dfd8b9c7
Author: Florian Dold <florian@dold.me>
AuthorDate: Thu Feb 9 23:42:44 2023 +0100
build system: convenience target to install CLIs
---
Makefile | 6 ++++++
packages/taler-harness/Makefile | 10 +++++++---
packages/taler-wallet-cli/Makefile | 10 +++++++---
3 files changed, 20 insertions(+), 6 deletions(-)
diff --git a/Makefile b/Makefile
index 92e60843e..035c385e9 100644
--- a/Makefile
+++ b/Makefile
@@ -105,3 +105,9 @@ lint:
install: compile
@echo Please run \'make install\' from one of the directories in
packages/\'
+
+# Install taler-wallet-cli and taler-harness
+install-tools:
+ pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-cli...
--filter @gnu-taler/taler-harness...
+ make -C packages/taler-wallet-cli install-nodeps
+ make -C packages/taler-harness install-nodeps
diff --git a/packages/taler-harness/Makefile b/packages/taler-harness/Makefile
index 8bbca5831..7ccfab205 100644
--- a/packages/taler-harness/Makefile
+++ b/packages/taler-harness/Makefile
@@ -15,9 +15,8 @@ warn-noprefix:
install: warn-noprefix
else
install_target = $(prefix)/lib/taler-harness
-.PHONY: install install-nodeps
-install:
- pnpm install --frozen-lockfile --filter @gnu-taler/taler-harness...
+.PHONY: install deps install-nodeps
+install-nodeps:
./build.mjs
install -d $(prefix)/bin
install -d $(install_target)/bin
@@ -28,4 +27,9 @@ install:
install ./dist/taler-harness-bundled.cjs.map
$(install_target)/node_modules/taler-harness/dist/
install ./bin/taler-harness.mjs
$(install_target)/node_modules/taler-harness/bin/
ln -sf
$(install_target)/node_modules/taler-harness/bin/taler-harness.mjs
$(prefix)/bin/taler-harness
+deps:
+ pnpm install --frozen-lockfile --filter @gnu-taler/taler-harness...
+install:
+ $(MAKE) deps
+ $(MAKE) install-nodeps
endif
diff --git a/packages/taler-wallet-cli/Makefile
b/packages/taler-wallet-cli/Makefile
index 4cd9aeb90..98116bbbd 100644
--- a/packages/taler-wallet-cli/Makefile
+++ b/packages/taler-wallet-cli/Makefile
@@ -15,9 +15,8 @@ warn-noprefix:
install: warn-noprefix
else
install_target = $(prefix)/lib/taler-wallet-cli
-.PHONY: install install-nodeps
-install:
- pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-cli...
+.PHONY: install install-nodeps deps
+install-nodeps:
install -d $(prefix)/bin
install -d $(install_target)/bin
install -d $(install_target)/node_modules/taler-wallet-cli
@@ -27,4 +26,9 @@ install:
install ./dist/taler-wallet-cli.mjs.map
$(install_target)/node_modules/taler-wallet-cli/dist/
install ./bin/taler-wallet-cli.mjs
$(install_target)/node_modules/taler-wallet-cli/bin/
ln -sf
$(install_target)/node_modules/taler-wallet-cli/bin/taler-wallet-cli.mjs
$(prefix)/bin/taler-wallet-cli
+deps:
+ pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-cli...
+install:
+ $(MAKE) deps
+ $(MAKE) install-nodeps
endif
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.