ci: make makefile more command-y
parent
051e95d640
commit
f3b67bbe9a
21
Makefile
21
Makefile
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue