2020-11-13 22:33:05 +01:00
|
|
|
# This Makefile has been placed in the public domain.
|
|
|
|
|
2016-02-22 19:08:16 +01:00
|
|
|
tsc = node_modules/typescript/bin/tsc
|
2022-03-08 12:56:30 +01:00
|
|
|
pogen = node_modules/@gnu-taler/pogen/bin/pogen.js
|
2017-05-24 15:10:37 +02:00
|
|
|
typedoc = node_modules/typedoc/bin/typedoc
|
2020-04-06 17:35:51 +02:00
|
|
|
ava = node_modules/.bin/ava
|
2017-05-27 18:05:10 +02:00
|
|
|
nyc = node_modules/nyc/bin/nyc.js
|
2020-11-13 22:12:54 +01:00
|
|
|
git-archive-all = ./build-system/taler-build-scripts/archive-with-submodules/git_archive_all.py
|
|
|
|
|
2022-10-28 14:58:08 +02:00
|
|
|
include .config.mk
|
2016-02-22 19:08:16 +01:00
|
|
|
|
2022-11-07 14:48:22 +01:00
|
|
|
.PHONY: compile
|
|
|
|
compile:
|
|
|
|
pnpm install -r --frozen-lockfile
|
|
|
|
pnpm run compile
|
|
|
|
|
|
|
|
|
2017-05-27 18:05:10 +02:00
|
|
|
.PHONY: dist
|
2017-05-24 14:31:13 +02:00
|
|
|
dist:
|
2022-11-04 12:40:14 +01:00
|
|
|
$(git-archive-all) \
|
|
|
|
--include ./configure \
|
|
|
|
--include ./packages/taler-wallet-cli/configure \
|
|
|
|
--include ./packages/demobank-ui/configure \
|
2023-01-26 22:14:57 +01:00
|
|
|
--include ./packages/taler-harness/configure \
|
|
|
|
--include ./packages/merchant-backoffice-ui/configure \
|
2022-11-04 12:40:14 +01:00
|
|
|
taler-wallet-$(shell git describe --tags --abbrev=0).tar.gz
|
2021-08-24 15:49:07 +02:00
|
|
|
|
|
|
|
# Create tarball with git hash prefix in name
|
|
|
|
.PHONY: dist-git
|
|
|
|
dist-git:
|
2020-11-13 22:33:05 +01:00
|
|
|
$(git-archive-all) --include ./configure taler-wallet-$(shell git describe --tags).tar.gz
|
2016-02-23 15:58:05 +01:00
|
|
|
|
2021-01-30 16:35:55 +01:00
|
|
|
.PHONY: publish
|
2022-03-08 12:56:30 +01:00
|
|
|
publish:
|
|
|
|
pnpm i -r --frozen-lockfile
|
|
|
|
pnpm run compile
|
2021-01-30 16:35:55 +01:00
|
|
|
pnpm publish -r --no-git-checks
|
|
|
|
|
2023-01-23 19:12:48 +01:00
|
|
|
.PHONY: backoffice-prebuilt
|
|
|
|
backoffice-prebuilt:
|
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/merchant-backoffice-ui...
|
|
|
|
pnpm run --filter @gnu-taler/merchant-backoffice-ui... build
|
2023-03-29 19:33:58 +02:00
|
|
|
./contrib/copy-backoffice-into-prebuilt.sh
|
2023-01-23 19:12:48 +01:00
|
|
|
|
2023-03-02 18:43:08 +01:00
|
|
|
.PHONY: backend-prebuilt
|
|
|
|
backend-prebuilt:
|
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/merchant-backend-ui...
|
|
|
|
pnpm run --filter @gnu-taler/merchant-backend... build
|
2023-03-29 19:33:58 +02:00
|
|
|
./contrib/copy-backend-into-prebuilt.sh
|
2023-03-02 18:43:08 +01:00
|
|
|
|
|
|
|
.PHONY: demobank-prebuilt
|
|
|
|
demobank-prebuilt:
|
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/merchant-ba...
|
|
|
|
pnpm run --filter @gnu-taler/demobank-ui... build
|
2023-03-29 19:33:58 +02:00
|
|
|
./contrib/copy-demobank-into-prebuilt.sh
|
2023-03-02 18:43:08 +01:00
|
|
|
|
2017-05-24 15:10:37 +02:00
|
|
|
# make documentation from docstrings
|
2017-05-27 18:05:10 +02:00
|
|
|
.PHONY: typedoc
|
2017-05-24 15:10:37 +02:00
|
|
|
typedoc:
|
2020-04-06 17:35:51 +02:00
|
|
|
$(typedoc) --out dist/typedoc --readme README
|
2017-05-24 15:10:37 +02:00
|
|
|
|
2017-05-27 18:05:10 +02:00
|
|
|
.PHONY: clean
|
2017-05-24 15:10:37 +02:00
|
|
|
clean:
|
2020-08-03 09:30:48 +02:00
|
|
|
pnpm run clean
|
2017-05-24 15:10:37 +02:00
|
|
|
|
2019-10-14 19:09:12 +02:00
|
|
|
.PHONY: submodules-update
|
|
|
|
submodules-update:
|
2019-10-02 23:25:19 +02:00
|
|
|
git submodule update --recursive --remote
|
|
|
|
|
2017-05-27 18:05:10 +02:00
|
|
|
.PHONY: check
|
2022-03-08 12:56:30 +01:00
|
|
|
check:
|
2022-03-08 13:14:33 +01:00
|
|
|
pnpm install -r --frozen-lockfile
|
2022-03-08 12:56:30 +01:00
|
|
|
pnpm run compile
|
2020-08-03 09:30:48 +02:00
|
|
|
pnpm run check
|
2019-08-20 16:05:38 +02:00
|
|
|
|
2022-05-31 10:19:49 +02:00
|
|
|
.PHONY: config-lib
|
|
|
|
config-lib:
|
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/taler-config-lib...
|
|
|
|
cd ./packages/taler-config-lib/ && pnpm link -g
|
|
|
|
|
2022-05-23 17:44:36 +02:00
|
|
|
.PHONY: anastasis-webui
|
|
|
|
anastasis-webui:
|
2022-06-24 20:24:41 +02:00
|
|
|
pnpm install --frozen-lockfile --filter . --filter @gnu-taler/anastasis-webui...
|
2022-06-24 19:55:12 +02:00
|
|
|
pnpm run --filter @gnu-taler/anastasis-webui... build
|
2022-05-23 17:44:36 +02:00
|
|
|
|
2022-06-27 20:12:44 +02:00
|
|
|
.PHONY: anastasis-webui-dist
|
|
|
|
anastasis-webui-dist: anastasis-webui
|
|
|
|
(cd packages/anastasis-webui/dist && zip -r - fonts ui.html) > anastasis-webui.zip
|
|
|
|
|
2022-05-23 17:44:36 +02:00
|
|
|
|
2022-09-05 18:02:53 +02:00
|
|
|
.PHONY: anastasis-webui-dev
|
|
|
|
anastasis-webui-dev:
|
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/anastasis-webui...
|
|
|
|
pnpm run --filter @gnu-taler/anastasis-webui... dev
|
|
|
|
|
2022-03-08 13:14:33 +01:00
|
|
|
.PHONY: webextension
|
2022-03-08 12:56:30 +01:00
|
|
|
webextension:
|
2022-03-08 13:14:33 +01:00
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-webextension...
|
2022-06-01 16:57:31 +02:00
|
|
|
pnpm run --filter @gnu-taler/taler-wallet-webextension... compile
|
2023-05-30 19:59:03 +02:00
|
|
|
cd ./packages/taler-wallet-webextension/ && ./pack.sh prod
|
2019-08-20 16:05:38 +02:00
|
|
|
|
2022-09-05 18:02:53 +02:00
|
|
|
.PHONY: webextension-dev
|
|
|
|
webextension-dev:
|
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-webextension...
|
|
|
|
pnpm run --filter @gnu-taler/taler-wallet-webextension... dev
|
|
|
|
|
2023-01-02 20:21:53 +01:00
|
|
|
.PHONY: embedded
|
|
|
|
embedded:
|
2023-06-06 14:48:21 +02:00
|
|
|
pnpm install --frozen-lockfile --ignore-scripts --filter @gnu-taler/taler-wallet-embedded...
|
2023-01-17 00:30:38 +01:00
|
|
|
pnpm run --filter @gnu-taler/taler-wallet-embedded compile
|
2023-01-17 00:32:13 +01:00
|
|
|
@echo built packages/taler-wallet-embedded/dist/taler-wallet-core-qjs.mjs
|
2023-01-02 20:21:53 +01:00
|
|
|
|
2020-04-06 20:02:01 +02:00
|
|
|
.PHONY: lint
|
|
|
|
lint:
|
2020-04-07 10:07:32 +02:00
|
|
|
./node_modules/.bin/eslint --ext '.js,.ts,.tsx' 'src'
|
2022-10-31 16:06:22 +01:00
|
|
|
|
|
|
|
|
2022-11-07 14:48:22 +01:00
|
|
|
install: compile
|
2022-10-31 16:06:22 +01:00
|
|
|
@echo Please run \'make install\' from one of the directories in packages/\'
|
2023-02-09 23:42:44 +01:00
|
|
|
|
|
|
|
# Install taler-wallet-cli and taler-harness
|
|
|
|
install-tools:
|
|
|
|
pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-cli... --filter @gnu-taler/taler-harness...
|
|
|
|
make -C packages/taler-wallet-cli install-nodeps
|
|
|
|
make -C packages/taler-harness install-nodeps
|