mirror of
https://github.com/lensapp/lens.git
synced 2025-05-20 05:10:56 +00:00
tweak Makefile
Signed-off-by: Jari Kolehmainen <jari.kolehmainen@gmail.com>
This commit is contained in:
parent
1ec22fb8f1
commit
74a9585a87
11
Makefile
11
Makefile
@ -16,13 +16,16 @@ node_modules:
|
|||||||
yarn install --frozen-lockfile --verbose
|
yarn install --frozen-lockfile --verbose
|
||||||
yarn check --verify-tree --integrity
|
yarn check --verify-tree --integrity
|
||||||
|
|
||||||
|
static/build/LensDev.html:
|
||||||
|
yarn compile:renderer
|
||||||
|
|
||||||
.PHONY: compile-dev
|
.PHONY: compile-dev
|
||||||
compile-dev:
|
compile-dev:
|
||||||
yarn compile:main --cache
|
yarn compile:main --cache
|
||||||
yarn compile:renderer --cache
|
yarn compile:renderer --cache
|
||||||
|
|
||||||
.PHONY: dev
|
.PHONY: dev
|
||||||
dev: node_modules binaries/client build-extensions
|
dev: node_modules binaries/client build-extensions static/build/LensDev.html
|
||||||
yarn dev
|
yarn dev
|
||||||
|
|
||||||
.PHONY: lint
|
.PHONY: lint
|
||||||
@ -63,7 +66,7 @@ endif
|
|||||||
$(extension_node_modules):
|
$(extension_node_modules):
|
||||||
cd $(@:/node_modules=) && npm install --no-audit --no-fund
|
cd $(@:/node_modules=) && npm install --no-audit --no-fund
|
||||||
|
|
||||||
$(extension_dists): build-extension-types
|
$(extension_dists): src/extensions/npm/extensions/dist
|
||||||
cd $(@:/dist=) && npm run build
|
cd $(@:/dist=) && npm run build
|
||||||
|
|
||||||
.PHONY: build-extensions
|
.PHONY: build-extensions
|
||||||
@ -121,11 +124,11 @@ endif
|
|||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean: clean-npm clean-extensions
|
clean: clean-npm clean-extensions
|
||||||
ifeq "$(DETECTED_OS)" "Windows"
|
ifeq "$(DETECTED_OS)" "Windows"
|
||||||
if exist binaries\client del /s /q binaries\client\*.*
|
if exist binaries\client del /s /q binaries\client
|
||||||
if exist dist del /s /q dist\*.*
|
if exist dist del /s /q dist\*.*
|
||||||
if exist static\build del /s /q static\build\*.*
|
if exist static\build del /s /q static\build\*.*
|
||||||
else
|
else
|
||||||
rm -rf binaries/client/*
|
rm -rf binaries/client
|
||||||
rm -rf dist/*
|
rm -rf dist/*
|
||||||
rm -rf static/build/*
|
rm -rf static/build/*
|
||||||
endif
|
endif
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user