mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-11-14 23:43:56 +01:00
build: do not requite git to build.
Dev builds still needs git. The version number is based on git as well. Fix #132
This commit is contained in:
parent
c9c5db9b9a
commit
83a339c683
8
Makefile
8
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
|
||||
|
Loading…
Reference in New Issue
Block a user