From 3eb8dd28113d9f59158f69c3b2ca04984a023a3b Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 19 Feb 2023 21:19:35 +0000 Subject: [PATCH] build: add make auto. --- Makefile | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/Makefile b/Makefile index 141901982..8c31d684c 100644 --- a/Makefile +++ b/Makefile @@ -34,6 +34,16 @@ install: install -Dm0644 "$${file}" "${DESTDIR}/usr/lib/systemd/user/$${service}.d/apparmor.conf"; \ done +auto: + @[ ${DISTRIBUTION} = Arch ] || exit 0; \ + makepkg --syncdeps --install --cleanbuild --force + @[ ${DISTRIBUTION} = Ubuntu ] || exit 0; \ + dch --newversion="${VERSION}" --urgency=medium --distribution=stable --controlmaint "Release ${VERSION}"; \ + dpkg-buildpackage -b -d --no-sign; \ + sudo dpkg -i "../apparmor.d_${VERSION}_all.deb"; \ + make clean + @[ ${DISTRIBUTION} = openSUSE ] || exit 0; \ + make local local: @./configure --complain