From d7e1d50bfad9bef98eb67bc20d01364a66516ea2 Mon Sep 17 00:00:00 2001 From: Wolfgang Bumiller Date: Thu, 24 Aug 2023 10:16:53 +0200 Subject: [PATCH] buildsys: fix rebuild logic Signed-off-by: Wolfgang Bumiller --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index a10b80c..e8afa19 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,6 @@ check: dinstall: deb sudo -k dpkg -i build/librust-*.deb -.PHONY: build build: rm -rf build rm debian/control @@ -36,14 +35,18 @@ build: cp build/pathpatterns/debian/control debian/control .PHONY: deb -deb: build build/$(DEB) -build/$(DEB): | build +deb: + rm -rf build + $(MAKE) build/$(DEB) +build/$(DEB): build (cd build/pathpatterns && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -b -uc -us) lintian build/*.deb .PHONY: dsc -dsc: build build/$(DSC) -build/$(DSC): | build +dsc: + rm -rf build + $(MAKE) build/$(DSC) +build/$(DSC): build (cd build/pathpatterns && CARGO=/usr/bin/cargo RUSTC=/usr/bin/rustc dpkg-buildpackage -S -uc -us) lintian build/*.dsc