Add option to regenerate i18n, add make target for it, move stuff around, cleanup

This commit is contained in:
su-ex
2021-05-29 15:07:59 +02:00
parent c18cc22db7
commit f980cef006
4 changed files with 82 additions and 43 deletions

View File

@ -1,10 +1,10 @@
.PHONY: all setup reskindex web desktop desktop-common linux debian pacman local-pkgbuild local-pkgbuild-install windows windows-portable
.PHONY: web-release debian-release pacman-release windows-setup-release windows-unpacked-release windows-portable-release windows-release release
.PHONY: all setup regenerate-i18n reskindex web desktop-common linux debian pacman local-pkgbuild local-pkgbuild-install windows windows-portable
.PHONY: web-release debian-release pacman-release windows-setup-release windows-unpacked-release windows-portable-release windows-release
.PHONY: clean
CFGDIR ?= configs/sc
all: release
all: web
YARN ?= yarnpkg
@ -37,7 +37,9 @@ CURRENT_RELEASE_DIR := $(RELEASE_DIR)/$(VERSION)
setup:
if [ ! -L "element-desktop/webapp" ]; then ./setup.sh; fi
cp $(CFGDIR)/config.json element-web/
regenerate-i18n: setup
./regenerate_i18n.sh
reskindex: setup
$(YARN) --cwd matrix-react-sdk reskindex
@ -45,6 +47,7 @@ reskindex: setup
web: export DIST_VERSION=$(WEB_OUT_DIST_VERSION)
web: setup reskindex
cp $(CFGDIR)/config.json element-web/
$(YARN) --cwd element-web dist
echo "$(VERSION)" > element-web/webapp/version
@ -52,8 +55,6 @@ desktop-common: web
$(YARN) --cwd element-desktop run fetch --cfgdir ''
$(YARN) --cwd element-desktop run build:native
desktop: windows linux
linux: desktop-common
$(YARN) --cwd element-desktop run build64linux
@ -114,8 +115,6 @@ macos-release: macos
mkdir -p $(CURRENT_RELEASE_DIR)
cp $(OUT_MACOS) $(CURRENT_RELEASE_DIR)
release: web-release debian-release pacman-release windows-release
clean:
$(YARN) --cwd matrix-js-sdk clean
$(YARN) --cwd matrix-react-sdk clean