graphic design tool
git clone https://git.lucas.co/cce-designer.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 | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/Makefile b/Makefile
index 1573570..0d7abc9 100644
--- a/Makefile
+++ b/Makefile
@@ -3,9 +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-designer ~/.local/bin/cce-designer
+ @command -v ccebuild >/dev/null || { echo "ccebuild not installed — run: make -C ../cce-compositor install"; exit 1; }
+ ccebuild install --no-build cce-designer
run:
cargo run