gnunet-svn
[Top][All Lists]
Advanced

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

[taler-wallet-core] branch master updated: make install for taler-util i


From: gnunet
Subject: [taler-wallet-core] branch master updated: make install for taler-util into taler-js
Date: Tue, 10 Oct 2023 19:23:15 +0200

This is an automated email from the git hooks/post-receive script.

sebasjm pushed a commit to branch master
in repository wallet-core.

The following commit(s) were added to refs/heads/master by this push:
     new 0631187f4 make install for taler-util into taler-js
0631187f4 is described below

commit 0631187f42921fab0e20be91a95c1d7eacda277f
Author: Sebastian <sebasjm@gmail.com>
AuthorDate: Tue Oct 10 10:34:01 2023 -0300

    make install for taler-util into taler-js
---
 bootstrap                    |  3 ++-
 packages/taler-util/Makefile | 42 ++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 44 insertions(+), 1 deletion(-)

diff --git a/bootstrap b/bootstrap
index 4b03f0921..217bba297 100755
--- a/bootstrap
+++ b/bootstrap
@@ -29,5 +29,6 @@ copy_configure "$our_configure" ./configure
 copy_configure "$our_configure" ./packages/taler-wallet-cli/configure
 copy_configure "$our_configure" ./packages/anastasis-cli/configure
 copy_configure "$our_configure" ./packages/demobank-ui/configure
-copy_configure "$our_configure" ./packages/merchant-backoffice-ui/configure
 copy_configure "$our_configure" ./packages/taler-harness/configure
+copy_configure "$our_configure" ./packages/taler-util/configure
+copy_configure "$our_configure" ./packages/merchant-backoffice-ui/configure
diff --git a/packages/taler-util/Makefile b/packages/taler-util/Makefile
new file mode 100644
index 000000000..def16c823
--- /dev/null
+++ b/packages/taler-util/Makefile
@@ -0,0 +1,42 @@
+# This Makefile has been placed in the public domain.
+
+ifeq ($(TOPLEVEL), yes)
+  $(info top-level build)
+  -include ../../.config.mk
+  override DESTDIR := $(TOP_DESTDIR)
+else
+  $(info package-level build)
+  -include ../../.config.mk
+  -include .config.mk
+endif
+
+$(info prefix is $(prefix))
+
+all:
+       @echo use 'make install' to build and install taler-util
+
+ifndef prefix
+.PHONY: warn-noprefix install
+warn-noprefix:
+       @echo "no prefix configured, did you run ./configure?"
+install: warn-noprefix
+else
+LIBDIR = $(prefix)/share/taler-js/taler-util
+NODE_DEPS = $(shell jq "(.dependencies|keys|map(\"node_modules/\" + .)|join(\" 
\"))" package.json -r)
+.PHONY: install install-nodeps deps
+install-nodeps:
+       pnpm compile 
+       @echo installing taler-util to $(DESTDIR)$(prefix)
+       install -d $(DESTDIR)$(LIBDIR)/lib/globbing 
+       install lib/*.* $(DESTDIR)$(LIBDIR)/lib
+       install lib/globbing/*.* $(DESTDIR)$(LIBDIR)/lib/globbing
+       install package.json $(DESTDIR)$(LIBDIR)
+       tar hcf - $(NODE_DEPS) | (cd $(DESTDIR)$(LIBDIR); tar xf -)
+
+deps:
+       pnpm install --frozen-lockfile --filter @gnu-taler/taler-util...
+       pnpm run --filter @gnu-taler/taler-util... compile
+install:
+       $(MAKE) deps
+       $(MAKE) install-nodeps
+endif

-- 
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.



reply via email to

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