From 83a339c683b659984bfa7722aec4d3953ac4601b Mon Sep 17 00:00:00 2001 From: Alexandre Pujol Date: Sun, 30 Apr 2023 20:23:08 +0100 Subject: [PATCH] build: do not requite git to build. Dev builds still needs git. The version number is based on git as well. Fix #132 --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index e3a0a0b0..5479a3df 100644 --- a/Makefile +++ b/Makefile @@ -6,7 +6,6 @@ DESTDIR ?= / BUILD := .build PKGNAME := apparmor.d -VERSION := 0.$(shell git rev-list --count HEAD)-1 P = $(filter-out dpkg,$(notdir $(wildcard ${BUILD}/apparmor.d/*))) .PHONY: all build enforce full install local $(P) pkg dpkg rpm tests lint clean @@ -74,10 +73,11 @@ pkg: @makepkg --syncdeps --install --cleanbuild --force --noconfirm dpkg: - @dch --newversion="${VERSION}" --urgency=medium --distribution=stable --controlmaint "Release ${VERSION}" + @dch --newversion="0.$(shell git rev-list --count HEAD)-1" --urgency=medium \ + --distribution=stable --controlmaint "Release 0.$(shell git rev-list --count HEAD)-1" @dpkg-buildpackage -b -d --no-sign - @sudo dpkg -i "../apparmor.d_${VERSION}_all.deb" - @make clean + @sudo dpkg -i "../apparmor.d_0.$(shell git rev-list --count HEAD)-1_all.deb" + @sudo make clean rpm: @make local