blob: 8bbca5831725e6651912044d13eb9559a7742593 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
|
# This Makefile has been placed in the public domain.
-include ../../.config.mk
include .config.mk
$(info prefix is $(prefix))
all:
@echo use 'make install' to build and install taler-harness
ifndef prefix
.PHONY: warn-noprefix install
warn-noprefix:
@echo "no prefix configured, did you run ./configure?"
install: warn-noprefix
else
install_target = $(prefix)/lib/taler-harness
.PHONY: install install-nodeps
install:
pnpm install --frozen-lockfile --filter @gnu-taler/taler-harness...
./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
endif
|