mirror of
https://mzte.de/git/LordMZTE/dotfiles.git
synced 2024-12-13 21:53:01 +01:00
41 lines
1.2 KiB
Makefile
41 lines
1.2 KiB
Makefile
lsps := "
|
|
bash-language-server
|
|
lua-language-server
|
|
rust-analyzer
|
|
taplo-cli
|
|
vscode-langservers-extracted
|
|
yaml-language-server
|
|
"
|
|
|
|
install-scripts target=(`echo $HOME` + "/.local/bin"): build-scripts
|
|
cp scripts/randomwallpaper/target/release/randomwallpaper {{target}}/randomwallpaper
|
|
cp scripts/playtwitch/target/release/playtwitch {{target}}/playtwitch
|
|
cp scripts/gpower/target/release/gpower {{target}}/gpower
|
|
|
|
ln -sf \
|
|
`pwd`/scripts/{start-joshuto,withjava} \
|
|
{{target}}
|
|
|
|
|
|
build-scripts:
|
|
cargo build --release --manifest-path scripts/randomwallpaper/Cargo.toml
|
|
cargo build --release --manifest-path scripts/playtwitch/Cargo.toml
|
|
cargo build --release --manifest-path scripts/gpower/Cargo.toml
|
|
|
|
install-lsps-paru:
|
|
#!/bin/sh
|
|
paru -S --needed --noconfirm {{replace(lsps, "\n", " ")}}
|
|
|
|
cargo install prosemd-lsp
|
|
|
|
if which opam &> /dev/null; then
|
|
opam install --yes \
|
|
ocaml-lsp-server \
|
|
ocamlformat
|
|
fi
|
|
|
|
install-prompt:
|
|
RUSTFLAGS="-C target-cpu=native" cargo build --release \
|
|
--manifest-path prompt/Cargo.toml
|
|
strip prompt/target/release/prompt
|
|
cp prompt/target/release/prompt ~/.local/bin
|