From 219b6aed61217ec3e206fc2a398e4ab3d0fb15f2 Mon Sep 17 00:00:00 2001 From: Lauri Nevala Date: Mon, 24 Aug 2020 11:46:52 +0300 Subject: [PATCH] Use wildcard method and fix clean task Signed-off-by: Lauri Nevala --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 6e078ca082..7c2a373a93 100644 --- a/Makefile +++ b/Makefile @@ -20,10 +20,8 @@ compile-dev: yarn compile:renderer --cache dev: -ifeq "$(DETECTED_OS)" "Windows" +ifeq ("$(wildcard static/build/main.js)","") make init -else - test -f out/main.js || make init endif yarn dev @@ -57,6 +55,12 @@ else endif clean: +ifeq "$(DETECTED_OS)" "Windows" + if exist binaries\client del /s /q binaries\client\*.* + if exist dist del /s /q dist\*.* + if exist static\build del /s /q static\build\*.* +else rm -rf binaries/client/* rm -rf dist/* rm -rf out/* +endif \ No newline at end of file