2022-12-23 12:59:29 +01:00
|
|
|
# This Makefile has been placed in the public domain.
|
|
|
|
|
2023-06-21 09:44:02 +02:00
|
|
|
ifeq ($(TOPLEVEL), yes)
|
|
|
|
$(info top-level build)
|
|
|
|
-include ../../.config.mk
|
2023-09-28 17:50:53 +02:00
|
|
|
override DESTDIR := $(TOP_DESTDIR)
|
2023-06-21 09:44:02 +02:00
|
|
|
else
|
|
|
|
$(info package-level build)
|
|
|
|
-include ../../.config.mk
|
|
|
|
-include .config.mk
|
|
|
|
endif
|
2022-12-23 12:59:29 +01:00
|
|
|
|
|
|
|
$(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
|
2023-09-28 17:50:53 +02:00
|
|
|
BINDIR = $(DESTDIR)$(prefix)/bin
|
|
|
|
LIBDIR = $(DESTDIR)$(prefix)/lib/taler-harness
|
|
|
|
NODEDIR = $(LIBDIR)/node_modules/taler-harness
|
2023-02-09 23:42:44 +01:00
|
|
|
.PHONY: install deps install-nodeps
|
|
|
|
install-nodeps:
|
2023-01-04 14:19:54 +01:00
|
|
|
./build.mjs
|
2023-09-28 17:50:53 +02:00
|
|
|
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
|
2023-02-09 23:42:44 +01:00
|
|
|
deps:
|
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/taler-harness...
|
|
|
|
install:
|
|
|
|
$(MAKE) deps
|
|
|
|
$(MAKE) install-nodeps
|
2022-12-23 12:59:29 +01:00
|
|
|
endif
|