2023-05-05 13:50:35 +02:00
|
|
|
# This Makefile has been placed in the public domain
|
|
|
|
|
2023-06-21 09:48:16 +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:48:16 +02:00
|
|
|
else
|
|
|
|
$(info package-level build)
|
|
|
|
-include ../../.config.mk
|
|
|
|
-include .config.mk
|
|
|
|
endif
|
2023-05-05 13:50:35 +02:00
|
|
|
|
2023-06-21 09:48:16 +02:00
|
|
|
$(info prefix is $(prefix))
|
|
|
|
|
|
|
|
.PHONY: all
|
2023-05-05 13:50:35 +02:00
|
|
|
all:
|
|
|
|
@echo run \'make install\' to install
|
|
|
|
|
2023-09-28 17:50:53 +02:00
|
|
|
spa_dir=$(DESTDIR)$(prefix)/share/taler/aml-backoffice-ui
|
2023-05-05 13:50:35 +02:00
|
|
|
|
2023-06-21 09:48:16 +02:00
|
|
|
.PHONY: install-nodeps
|
|
|
|
install-nodeps:
|
|
|
|
install -d $(spa_dir)
|
|
|
|
install ./dist/prod/* $(spa_dir)
|
|
|
|
|
|
|
|
.PHONY: deps
|
|
|
|
deps:
|
2023-06-05 15:04:09 +02:00
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/aml-backoffice-ui...
|
2023-05-05 13:50:35 +02:00
|
|
|
pnpm run check
|
|
|
|
pnpm run build
|
2023-06-21 09:48:16 +02:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
$(MAKE) deps
|
|
|
|
$(MAKE) install-nodeps
|
2023-05-05 13:50:35 +02:00
|
|
|
|