diff options
author | Florian Dold <florian@dold.me> | 2023-09-28 17:50:53 +0200 |
---|---|---|
committer | Florian Dold <florian@dold.me> | 2023-09-28 17:50:53 +0200 |
commit | 467f96869536a76ed0d129e38f237a77b31b1f60 (patch) | |
tree | f8141cc2455a687e95b9cd852cc497bb2ebf9315 /packages/taler-harness | |
parent | 61424e2cb51dde9a8c7442b20b6621cc8b1d3b26 (diff) | |
download | wallet-core-467f96869536a76ed0d129e38f237a77b31b1f60.tar.xz |
build system: support DESTDIR
Diffstat (limited to 'packages/taler-harness')
-rw-r--r-- | packages/taler-harness/Makefile | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/packages/taler-harness/Makefile b/packages/taler-harness/Makefile index ed8365dc8..f9967419d 100644 --- a/packages/taler-harness/Makefile +++ b/packages/taler-harness/Makefile @@ -3,6 +3,7 @@ ifeq ($(TOPLEVEL), yes) $(info top-level build) -include ../../.config.mk + override DESTDIR := $(TOP_DESTDIR) else $(info package-level build) -include ../../.config.mk @@ -20,19 +21,20 @@ warn-noprefix: @echo "no prefix configured, did you run ./configure?" install: warn-noprefix else -install_target = $(prefix)/lib/taler-harness +BINDIR = $(DESTDIR)$(prefix)/bin +LIBDIR = $(DESTDIR)$(prefix)/lib/taler-harness +NODEDIR = $(LIBDIR)/node_modules/taler-harness .PHONY: install deps install-nodeps install-nodeps: ./build.mjs - install -d $(prefix)/bin - install -d $(install_target)/bin - install -d $(install_target)/node_modules/taler-harness - install -d $(install_target)/node_modules/taler-harness/bin - install -d $(install_target)/node_modules/taler-harness/dist - install ./dist/taler-harness-bundled.cjs $(install_target)/node_modules/taler-harness/dist/ - 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 + install -d $(BINDIR) + install -d $(NODEDIR) + install -d $(NODEDIR)/bin + install -d $(NODEDIR)/dist + install ./dist/taler-harness-bundled.cjs $(NODEDIR)/dist/ + install ./dist/taler-harness-bundled.cjs.map $(NODEDIR)/dist/ + install ./bin/taler-harness.mjs $(NODEDIR)/bin/ + ln -sf $(NODEDIR)/bin/taler-harness.mjs $(BINDIR)/taler-harness deps: pnpm install --frozen-lockfile --filter @gnu-taler/taler-harness... install: |