Allow specifying config

This commit is contained in:
SpiritCroc
2020-09-02 11:43:22 +02:00
parent bd7c0a209d
commit f6fa1abf6d
3 changed files with 50 additions and 3 deletions

View File

@ -1,12 +1,19 @@
.PHONY: all web desktop desktop-common linux windows
CFGDIR ?= configs/sc
all: desktop
-include release.mk
web:
cp $(CFGDIR)/config.json element-web/
yarn --cwd element-web dist
desktop-common: web
yarn --cwd element-desktop run fetch --cfgdir ''
yarn --cwd element-desktop run fetch --cfgdir $(CFGDIR)
yarn --cwd element-desktop run build:native
desktop: windows linux
@ -16,5 +23,3 @@ linux: desktop-common
windows: desktop-common
yarn --cwd element-desktop run build64windows
-include release.mk