From 1bcc42bd85d8a450d137b4bd92b99d2333a4eb4d Mon Sep 17 00:00:00 2001 From: Dietmar Maurer Date: Wed, 29 Jul 2020 08:07:47 +0200 Subject: [PATCH] Makefile: build packages inside build/ directory --- Makefile | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9583342..f3a05df 100644 --- a/Makefile +++ b/Makefile @@ -11,16 +11,17 @@ dinstall: deb .PHONY: deb deb: rm -rf build + mkdir build debcargo package \ --config "$(PWD)/debian/debcargo.toml" \ --changelog-ready \ --no-overlay-write-back \ - --directory "$(PWD)/build" \ + --directory "$(PWD)/build/pxar" \ "pxar" \ "$$(dpkg-parsechangelog -l "debian/changelog" -SVersion | sed -e 's/-.*//')" echo system >build/rust-toolchain - (cd build && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -b -uc -us) - lintian *.deb + (cd build/pxar && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -b -uc -us) + lintian build/*.deb .PHONY: clean clean: -- 2.39.5