From 005678cec28ab81e5d08eca00be32bb5a9620bfc Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Fri, 20 Sep 2024 08:43:07 +0200 Subject: [PATCH] buildsys: add a 'make list-packages' target To ease development on new machines, this provides an easy way to just do # apt install $(make list-packages) to get started. Signed-off-by: Wolfgang Bumiller --- Makefile | 6 ++++++ README.rst | 12 +++++++++++- 2 files changed, 17 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 1fbdafce..e12427d3 100644 --- a/Makefile +++ b/Makefile @@ -38,6 +38,12 @@ dinstall: autopkgtest build/$* build/*.deb -- null touch $@ +.PHONY: list-packages +list-packages: + @for p in $(CRATES); do \ + echo "librust-$$p-dev"; \ + done + .PHONY: check check: cargo test diff --git a/README.rst b/README.rst index 46d90ef4..c11ac8e9 100644 --- a/README.rst +++ b/README.rst @@ -11,13 +11,23 @@ checksums are not compatible. To reference new dependencies (or updated versions) that are not yet packaged, the dependency needs to point directly to a path or git source. +Quickly installing all packages from apt +======================================== + +To a void too many manual installations when ``mk-build-deps`` etc. fail, a +quick way to install all the main packages of this workspace is to run: + +:: + + # apt install $(make list-packages) + Steps for Releases ================== - Run ./bump.sh [patch|minor|major|] -- Fill out changelog -- Confirm bump commit -- Build packages with `make deb`. +- Build packages with `make -deb`. -- Don't forget to commit updated d/control! Adding Crates