ci: make makefile more command-y

feat/type-attributes
Tomáš Mládek 2022-10-24 21:05:37 +02:00
parent 051e95d640
commit f3b67bbe9a
1 changed files with 13 additions and 8 deletions

View File

@ -1,4 +1,4 @@
all: backend frontend
all: target/release/upend webui/dist
package: all
rm -fr dist
@ -9,18 +9,23 @@ package: all
VERSION="$$(grep '^version' Cargo.toml|grep -Eo '[0-9]+\.[0-9]+\.[0-9]+')" \
linuxdeploy-x86_64.AppImage --appdir dist -d upend.desktop --output appimage
backend: target/release/upend
target/release/upend:
backend:
cargo build --release
tools/upend_js/index.js:
frontend: tools/upend_js/index.js
cd webui && yarn add ../tools/upend_js && yarn install --immutable && yarn build
jslib:
cd tools/upend_js && yarn install --immutable && yarn build
frontend: webui/dist
target/release/upend:
make backend
webui/dist: tools/upend_js/index.js
cd webui && yarn add ../tools/upend_js && yarn install --immutable && yarn build
webui/dist:
make frontend
tools/upend_js/index.js:
make jslib
lint: backend_lint frontend_lint