Build extensions automatically before app is built (#1093)

Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
Jari Kolehmainen authored and GitHub committed 2020-10-19 11:41:07 +03:00
1 parent a00d26149c
commit a478143423
3 files changed
+17 -2

No files matched your search

+7 -2
View File
@@ -1,3 +1,5 @@
EXTENSIONS_DIR = ./extensions
ifeq ($(OS),Windows_NT)
DETECTED_OS := Windows
else
@@ -46,13 +48,16 @@ integration-win:
test-app:
yarn test
build: install-deps download-bins
build: install-deps download-bins build-extensions
ifeq "$(DETECTED_OS)" "Windows"
yarn dist:win
else
yarn dist
endif
build-extensions:
$(foreach file, $(wildcard $(EXTENSIONS_DIR)/*), $(MAKE) -C $(file) build;)
clean:
ifeq "$(DETECTED_OS)" "Windows"
if exist binaries\client del /s /q binaries\client\*.*
@@ -62,4 +67,4 @@ else
rm -rf binaries/client/*
rm -rf dist/*
rm -rf static/build/*
endif
endif