2022-11-04 14:24: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
|
|
|
|
else
|
|
|
|
$(info package-level build)
|
|
|
|
-include ../../.config.mk
|
|
|
|
-include .config.mk
|
|
|
|
endif
|
2022-11-04 14:24:29 +01:00
|
|
|
|
2023-06-21 09:44:02 +02:00
|
|
|
$(info prefix is $(prefix))
|
|
|
|
|
|
|
|
.PHONY: all
|
2022-11-04 14:24:29 +01:00
|
|
|
all:
|
|
|
|
@echo run \'make install\' to install
|
|
|
|
|
2022-11-04 15:50:09 +01:00
|
|
|
spa_dir=$(prefix)/share/taler/merchant-backoffice
|
2022-11-04 14:24:29 +01:00
|
|
|
|
2023-06-21 09:44:02 +02:00
|
|
|
.PHONY: deps
|
|
|
|
deps:
|
2022-11-04 15:50:09 +01:00
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/merchant-backoffice...
|
2022-11-04 14:24:29 +01:00
|
|
|
pnpm run build
|
2023-06-21 09:44:02 +02:00
|
|
|
|
|
|
|
.PHONY: install-nodeps
|
|
|
|
install-nodeps:
|
2023-06-05 14:42:10 +02:00
|
|
|
(cd dist/prod && find . -type f -exec install -D "{}" "$(spa_dir)/{}" \;)
|
2022-11-04 14:24:29 +01:00
|
|
|
|
2023-06-21 09:44:02 +02:00
|
|
|
|
|
|
|
.PHONY: install
|
|
|
|
install:
|
|
|
|
$(MAKE) deps
|
|
|
|
$(MAKE) install-nodeps
|
|
|
|
|