summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFlorian Dold <florian@dold.me>2022-10-31 16:06:22 +0100
committerFlorian Dold <florian@dold.me>2022-10-31 16:06:22 +0100
commitd3855a1861799e5ca6972ea1b7fa1475835460ba (patch)
tree51b126cea8c11fd77e8a3d5bf65e0f523f191b02 /Makefile
parent6e7928062f5bb93769d2960c77af95d5959a64a4 (diff)
downloadwallet-core-d3855a1861799e5ca6972ea1b7fa1475835460ba.tar.gz
wallet-core-d3855a1861799e5ca6972ea1b7fa1475835460ba.tar.bz2
wallet-core-d3855a1861799e5ca6972ea1b7fa1475835460ba.zip
demobank-ui: fix error reporting
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile31
1 files changed, 4 insertions, 27 deletions
diff --git a/Makefile b/Makefile
index 04ae43c81..05f179624 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,5 @@
# This Makefile has been placed in the public domain.
-src = src
-poname = taler-wallet-webex
-
tsc = node_modules/typescript/bin/tsc
pogen = node_modules/@gnu-taler/pogen/bin/pogen.js
typedoc = node_modules/typedoc/bin/typedoc
@@ -82,30 +79,10 @@ webextension-dev:
pnpm install --frozen-lockfile --filter @gnu-taler/taler-wallet-webextension...
pnpm run --filter @gnu-taler/taler-wallet-webextension... dev
-.PHONY: i18n
-i18n: compile
- # extract translatable strings
- find $(src) \( -name '*.ts' -or -name '*.tsx' \) ! -name '*.d.ts' \
- | xargs node $(pogen) \
- | msguniq \
- | msgmerge src/i18n/poheader - \
- > src/i18n/$(poname).pot
- # merge existing translations
- @for pofile in src/i18n/*.po; do \
- echo merging $$pofile; \
- msgmerge -o $$pofile $$pofile src/i18n/$(poname).pot; \
- done;
- # generate .ts file containing all translations
- cat src/i18n/strings-prelude > src/i18n/strings.ts
- @for pofile in src/i18n/*.po; do \
- echo appending $$pofile; \
- ./contrib/po2ts $$pofile >> src/i18n/strings.ts; \
- done;
- ./node_modules/.bin/prettier --config .prettierrc --write src/i18n/strings.ts
-
-# Some commands are only available when ./configure has been run
-
-
.PHONY: lint
lint:
./node_modules/.bin/eslint --ext '.js,.ts,.tsx' 'src'
+
+
+install:
+ @echo Please run \'make install\' from one of the directories in packages/\'