From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Schantl To: location@lists.ipfire.org Subject: [PATCH] Makefile: Build debian packages in own directory. Date: Wed, 11 Dec 2019 16:49:12 +0100 Message-ID: <20191211154912.2130-1-stefan.schantl@ipfire.org> MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============5160425199602616345==" List-Id: --===============5160425199602616345== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit This helps to keep a much cleaner environment. Signed-off-by: Stefan Schantl --- Makefile.am | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 1b9d90e..bf1dde1 100644 --- a/Makefile.am +++ b/Makefile.am @@ -421,4 +421,8 @@ $(DEBIAN_TARBALL_NAME): dist .PHONY: debian debian: $(DEBIAN_TARBALL_NAME) - debuild -i -us -uc -b + mkdir -pv debian-build/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/debian + cp -avf $(DEBIAN_TARBALL_NAME) debian-build + cp -avf debian/* debian-build/$(PACKAGE_NAME)-$(PACKAGE_VERSION)/debian + cd debian-build && tar -xvf $(DEBIAN_TARBALL_NAME) + cd debian-build/$(PACKAGE_NAME)-$(PACKAGE_VERSION) && debuild -us -uc -- 2.20.1 --===============5160425199602616345==--