1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00

Use wildcard method and fix clean task

Signed-off-by: Lauri Nevala <lauri.nevala@gmail.com>
This commit is contained in:
Lauri Nevala 2020-08-24 11:46:52 +03:00
parent b0f36aee8e
commit 219b6aed61

View File

@ -20,10 +20,8 @@ compile-dev:
yarn compile:renderer --cache yarn compile:renderer --cache
dev: dev:
ifeq "$(DETECTED_OS)" "Windows" ifeq ("$(wildcard static/build/main.js)","")
make init make init
else
test -f out/main.js || make init
endif endif
yarn dev yarn dev
@ -57,6 +55,12 @@ else
endif endif
clean: 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 binaries/client/*
rm -rf dist/* rm -rf dist/*
rm -rf out/* rm -rf out/*
endif