GPU-accelerated UI toolkit (Vulkan)
git clone https://git.lucas.co/cce-ui.git
build: install via ccebuild instead of hand-listing binaries
The install recipe named this crate every binary by hand, which is how crates
with extra [[bin]] targets silently went uninstalled: cce-ui shipped without
cce-bevel and cce-display-manager without its three keyring helpers, for weeks
at a time. ccebuild derives the list from cargo metadata, so a new bin target
needs no edit here.
Only the install recipe is delegated; build/run/clean are unchanged. The guard
points at cce-compositor, which installs ccebuild.
Co-Authored-By: Claude Fable 5 <[email protected]>
Makefile | 9 ++++++---
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile
index 2af2a4a..d2b20cb 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,13 @@
build:
cargo build --release
+# Binaries, helper scripts and user units are enumerated by ccebuild from
+# cargo metadata, so this crate's extra [[bin]] targets are picked up without
+# being named here — hand-listing them is what left cce-bevel and the keyring
+# helpers uninstalled for weeks.
install: build
- mkdir -p ~/.local/bin
- install -m 755 ../target/release/cce-ui ~/.local/bin/cce-ui
- install -m 755 ../target/release/cce-ramp ~/.local/bin/cce-ramp
+ @command -v ccebuild >/dev/null || { echo "ccebuild not installed — run: make -C ../cce-compositor install"; exit 1; }
+ ccebuild install --no-build cce-ui
run:
cargo run