1
0
mirror of https://github.com/lensapp/lens.git synced 2025-05-20 05:10:56 +00:00
lens/Makefile
Roman b7974827d2
Lens restructure (#540)
Signed-off-by: Roman <ixrock@gmail.com>
2020-06-30 14:35:16 +03:00

59 lines
816 B
Makefile

ifeq ($(OS),Windows_NT)
DETECTED_OS := Windows
else
DETECTED_OS := $(shell uname)
endif
.PHONY: init dev build test clean
init: download-bins install-deps compile-dev
echo "Init done"
download-bins:
yarn download-bins
install-deps:
yarn install --frozen-lockfile
compile-dev:
yarn compile:main --cache
yarn compile:renderer --cache
dev:
test -f out/main.js || make init
yarn dev # run electron and watch files
lint:
yarn lint
test:
yarn test
integration-linux:
yarn build:linux
yarn integration
integration-mac:
yarn build:mac
yarn integration
integration-win:
yarn build:win
yarn integration
test-app:
yarn test
build: install-deps
yarn install
ifeq "$(DETECTED_OS)" "Windows"
yarn dist:win
else
yarn dist
endif
clean:
rm -rf binaries/client/*
rm -rf dist/*
rm -rf out/*