-symlinks

This commit is contained in:
Florian Dold 2023-09-28 18:42:14 +02:00
parent 467f968695
commit 552155c826
No known key found for this signature in database
GPG Key ID: D2E4F00F29D02A4B
3 changed files with 30 additions and 30 deletions

View File

@ -21,19 +21,19 @@ warn-noprefix:
@echo "no prefix configured, did you run ./configure?" @echo "no prefix configured, did you run ./configure?"
install: warn-noprefix install: warn-noprefix
else else
bindir = $(DESTDIR)$(prefix)/bin bindir = $(prefix)/bin
libdir = $(DESTDIR)$(prefix)/lib/anastasis-cli libdir = $(prefix)/lib/anastasis-cli
nodedir = $(libdir)/node_modules/anastasis-cli nodedir = $(libdir)/node_modules/anastasis-cli
.PHONY: install install-nodeps deps .PHONY: install install-nodeps deps
install-nodeps: install-nodeps:
./build-node.mjs ./build-node.mjs
install -d $(bindir) install -d $(DESTDIR)$(bindir)
install -d $(nodedir)/bin install -d $(DESTDIR)$(nodedir)/bin
install -d $(nodedir)/dist install -d $(DESTDIR)$(nodedir)/dist
install ./dist/anastasis-cli-bundled.cjs $(nodedir)/dist/ install ./dist/anastasis-cli-bundled.cjs $(DESTDIR)$(nodedir)/dist/
install ./dist/anastasis-cli-bundled.cjs.map $(nodedir)/dist/ install ./dist/anastasis-cli-bundled.cjs.map $(DESTDIR)$(nodedir)/dist/
install ./bin/anastasis-cli.mjs $(nodedir)/bin/ install ./bin/anastasis-cli.mjs $(DESTDIR)$(nodedir)/bin/
ln -sf $(nodedir)/bin/anastasis-cli.mjs $(bindir)/anastasis-cli ln -sf ../lib/anastasis-cli/node_modules/anastasis-cli/bin/anastasis-cli.mjs $(DESTDIR)$(bindir)/anastasis-cli
deps: deps:
pnpm install --frozen-lockfile --filter @gnu-taler/anastasis-cli... pnpm install --frozen-lockfile --filter @gnu-taler/anastasis-cli...
install: install:

View File

@ -21,20 +21,20 @@ warn-noprefix:
@echo "no prefix configured, did you run ./configure?" @echo "no prefix configured, did you run ./configure?"
install: warn-noprefix install: warn-noprefix
else else
BINDIR = $(DESTDIR)$(prefix)/bin BINDIR = $(prefix)/bin
LIBDIR = $(DESTDIR)$(prefix)/lib/taler-harness LIBDIR = $(prefix)/lib/taler-harness
NODEDIR = $(LIBDIR)/node_modules/taler-harness NODEDIR = $(LIBDIR)/node_modules/taler-harness
.PHONY: install deps install-nodeps .PHONY: install deps install-nodeps
install-nodeps: install-nodeps:
./build.mjs ./build.mjs
install -d $(BINDIR) install -d $(DESTDIR)$(BINDIR)
install -d $(NODEDIR) install -d $(DESTDIR)$(NODEDIR)
install -d $(NODEDIR)/bin install -d $(DESTDIR)$(NODEDIR)/bin
install -d $(NODEDIR)/dist install -d $(DESTDIR)$(NODEDIR)/dist
install ./dist/taler-harness-bundled.cjs $(NODEDIR)/dist/ install ./dist/taler-harness-bundled.cjs $(DESTDIR)$(NODEDIR)/dist/
install ./dist/taler-harness-bundled.cjs.map $(NODEDIR)/dist/ install ./dist/taler-harness-bundled.cjs.map $(DESTDIR)$(NODEDIR)/dist/
install ./bin/taler-harness.mjs $(NODEDIR)/bin/ install ./bin/taler-harness.mjs $(DESTDIR)$(NODEDIR)/bin/
ln -sf $(NODEDIR)/bin/taler-harness.mjs $(BINDIR)/taler-harness ln -sf ../lib/taler-harness/node_modules/taler-harness/bin/taler-harness.mjs $(DESTDIR)$(BINDIR)/taler-harness
deps: deps:
pnpm install --frozen-lockfile --filter @gnu-taler/taler-harness... pnpm install --frozen-lockfile --filter @gnu-taler/taler-harness...
install: install:

View File

@ -21,23 +21,23 @@ warn-noprefix:
@echo "no prefix configured, did you run ./configure?" @echo "no prefix configured, did you run ./configure?"
install: warn-noprefix install: warn-noprefix
else else
LIBDIR = $(DESTDIR)$(prefix)/lib/taler-wallet-cli LIBDIR = $(prefix)/lib/taler-wallet-cli
BINDIR=$(DESTDIR)$(prefix)/bin BINDIR=$(prefix)/bin
NODEDIR=$(LIBDIR)/node_modules/taler-wallet-cli NODEDIR=$(LIBDIR)/node_modules/taler-wallet-cli
.PHONY: install install-nodeps deps .PHONY: install install-nodeps deps
install-nodeps: install-nodeps:
./build-node.mjs ./build-node.mjs
@echo installing wallet CLI to $(DESTDIR)$(prefix) @echo installing wallet CLI to $(DESTDIR)$(prefix)
install -d $(BINDIR) install -d $(DESTDIR)$(BINDIR)
install -d $(LIBDIR)/build install -d $(DESTDIR)$(LIBDIR)/build
install -d $(NODEDIR)/bin install -d $(DESTDIR)$(NODEDIR)/bin
install -d $(NODEDIR)/dist install -d $(DESTDIR)$(NODEDIR)/dist
install ./dist/taler-wallet-cli-bundled.cjs $(NODEDIR)/dist/ install ./dist/taler-wallet-cli-bundled.cjs $(DESTDIR)$(NODEDIR)/dist/
install ./dist/taler-wallet-cli-bundled.cjs.map $(NODEDIR)/dist/ install ./dist/taler-wallet-cli-bundled.cjs.map $(DESTDIR)$(NODEDIR)/dist/
install ./bin/taler-wallet-cli.mjs $(NODEDIR)/bin/ install ./bin/taler-wallet-cli.mjs $(DESTDIR)$(NODEDIR)/bin/
install ../idb-bridge/node_modules/better-sqlite3/build/Release/better_sqlite3.node $(LIBDIR)/build/ \ install ../idb-bridge/node_modules/better-sqlite3/build/Release/better_sqlite3.node $(DESTDIR)$(LIBDIR)/build/ \
|| echo "sqlite3 unavailable, better-sqlite3 native module not found" || echo "sqlite3 unavailable, better-sqlite3 native module not found"
ln -sf $(NODESIR)/bin/taler-wallet-cli.mjs $(BINDIR)/taler-wallet-cli ln -sf ../lib/taler-wallet-cli/node_modules/taler-wallet-cli/bin/taler-wallet-cli.mjs $(DESTDIR)$(BINDIR)/taler-wallet-cli
deps: deps:
pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-cli... pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-cli...
pnpm run --filter @gnu-taler/taler-wallet-cli... compile pnpm run --filter @gnu-taler/taler-wallet-cli... compile