2022-10-31 12:02:09 +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
|
|
|
|
else
|
|
|
|
$(info package-level build)
|
|
|
|
-include ../../.config.mk
|
|
|
|
-include .config.mk
|
|
|
|
endif
|
2022-10-31 12:02:09 +01:00
|
|
|
|
2023-06-21 09:44:02 +02:00
|
|
|
$(info prefix is $(prefix))
|
|
|
|
|
|
|
|
.PHONY: all
|
2022-10-31 12:02:09 +01:00
|
|
|
all:
|
|
|
|
@echo run \'make install\' to install
|
|
|
|
|
|
|
|
spa_dir=$(prefix)/share/taler/demobank-ui
|
|
|
|
|
2023-06-21 09:44:02 +02:00
|
|
|
.PHONY: deps
|
|
|
|
deps:
|
2022-10-31 12:02:09 +01:00
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/demobank-ui...
|
2023-09-11 19:56:32 +02:00
|
|
|
pnpm run --filter @gnu-taler/demobank-ui... compile
|
2022-10-31 12:02:09 +01:00
|
|
|
pnpm run check
|
|
|
|
pnpm run build
|
2023-06-21 09:44:02 +02:00
|
|
|
|
|
|
|
.PHONY: install-nodeps
|
|
|
|
install-nodeps:
|
2022-10-31 12:02:09 +01:00
|
|
|
install -d $(spa_dir)
|
2023-06-05 14:39:05 +02:00
|
|
|
install ./dist/prod/* $(spa_dir)
|
2022-10-31 12:02:09 +01:00
|
|
|
|
2023-06-21 09:44:02 +02:00
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
$(MAKE) deps
|
|
|
|
$(MAKE) install-nodeps
|
|
|
|
|