From mboxrd@z Thu Jan  1 00:00:00 1970
From: Michael Tremer <michael.tremer@ipfire.org>
To: location@lists.ipfire.org
Subject: Re:  [PATCH] Makefile: Build debian packages in own directory.
Date: Wed, 11 Dec 2019 16:03:36 +0000
Message-ID: <C70DB07B-1E58-4EBF-871C-B4A9DADFE01E@ipfire.org>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="===============6524612493165743114=="
List-Id: <location.lists.ipfire.org>

--===============6524612493165743114==
Content-Type: text/plain; charset="utf-8"
Content-Transfer-Encoding: quoted-printable

=EF=BB=BFHey,

I can get behind this patch although it is quite ugly.

The directory is left after the build has completed and should at least be in=
cluded in .gitignore as well as being removed on make clean.

Can you edit the patch accordingly?

-Michael

> On 11 Dec 2019, at 15:49, Stefan Schantl <stefan.schantl(a)ipfire.org> wrot=
e:
>=20
> =EF=BB=BFThis helps to keep a much cleaner environment.
>=20
> Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
> ---
> Makefile.am | 6 +++++-
> 1 file changed, 5 insertions(+), 1 deletion(-)
>=20
> 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
>=20
> .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
> --=20
> 2.20.1

--===============6524612493165743114==--