2022-10-28 14:58:08 +02:00
|
|
|
# This Makefile has been placed in the public domain.
|
|
|
|
|
2022-10-31 16:06:22 +01:00
|
|
|
-include ../../.config.mk
|
2022-10-28 14:58:08 +02:00
|
|
|
include .config.mk
|
|
|
|
|
2022-10-31 16:06:22 +01:00
|
|
|
$(info prefix is $(prefix))
|
|
|
|
|
2022-10-28 14:58:08 +02:00
|
|
|
all:
|
|
|
|
@echo use 'make install' to build and install taler-wallet-cli
|
|
|
|
|
|
|
|
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-wallet-cli
|
2022-10-31 16:50:54 +01:00
|
|
|
.PHONY: install install-nodeps
|
2022-10-28 14:58:08 +02:00
|
|
|
install:
|
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-cli...
|
|
|
|
install -d $(prefix)/bin
|
|
|
|
install -d $(install_target)/bin
|
|
|
|
install -d $(install_target)/node_modules/taler-wallet-cli
|
|
|
|
install -d $(install_target)/node_modules/taler-wallet-cli/bin
|
|
|
|
install -d $(install_target)/node_modules/taler-wallet-cli/dist
|
2022-10-31 18:00:22 +01:00
|
|
|
install ./dist/taler-wallet-cli.mjs $(install_target)/node_modules/taler-wallet-cli/dist/
|
|
|
|
install ./dist/taler-wallet-cli.mjs.map $(install_target)/node_modules/taler-wallet-cli/dist/
|
2022-10-31 16:49:44 +01:00
|
|
|
install ./bin/taler-wallet-cli.mjs $(install_target)/node_modules/taler-wallet-cli/bin/
|
2022-10-31 18:07:22 +01:00
|
|
|
ln -sf $(install_target)/node_modules/taler-wallet-cli/bin/taler-wallet-cli.mjs $(prefix)/bin/taler-wallet-cli
|
2022-10-28 14:58:08 +02:00
|
|
|
endif
|