wallet-core/packages/merchant-backoffice-ui/Makefile

36 lines
699 B
Makefile
Raw Normal View History

2022-11-04 14:24:29 +01:00
# This Makefile has been placed in the public domain
ifeq ($(TOPLEVEL), yes)
$(info top-level build)
-include ../../.config.mk
2023-09-28 17:50:53 +02:00
override DESTDIR := $(TOP_DESTDIR)
else
$(info package-level build)
-include ../../.config.mk
-include .config.mk
endif
2022-11-04 14:24:29 +01:00
$(info prefix is $(prefix))
.PHONY: all
2022-11-04 14:24:29 +01:00
all:
@echo run \'make install\' to install
2023-09-28 17:50:53 +02:00
spa_dir=$(DESTDIR)$(prefix)/share/taler/merchant-backoffice
2022-11-04 14:24:29 +01: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
.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
.PHONY: install
install:
$(MAKE) deps
$(MAKE) install-nodeps