summaryrefslogtreecommitdiff
path: root/packages/bank-ui/Makefile
blob: 036e6fd3e2c15042af22727a0efb3823ee19b2e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
# This Makefile has been placed in the public domain

ifeq ($(TOPLEVEL), yes)
  $(info top-level build)
  -include ../../.config.mk
  override DESTDIR := $(TOP_DESTDIR)
else
  $(info package-level build)
  -include ../../.config.mk
  -include .config.mk
endif

$(info prefix is $(prefix))

.PHONY: all
all:
	@echo run \'make install\' to install

spa_dir=$(DESTDIR)$(prefix)/share/taler/bank-ui

.PHONY: deps
deps:
	pnpm install --frozen-lockfile --filter @gnu-taler/bank-ui...
	pnpm run --filter @gnu-taler/bank-ui... compile
	pnpm run check
	pnpm run build

.PHONY: install-nodeps
install-nodeps:
	install -d $(spa_dir)
	install ./dist/prod/* $(spa_dir)

.PHONY: install
install:
	$(MAKE) deps
	$(MAKE) install-nodeps