build: minor improvment.

This commit is contained in:
Alexandre Pujol 2023-04-19 18:58:50 +01:00
parent ffa0f7bc3d
commit 3706b96fa2
Failed to generate hash of commit
3 changed files with 4 additions and 4 deletions

View file

@ -7,7 +7,7 @@ DESTDIR ?= /
BUILD := .build
PKGNAME := apparmor.d
VERSION := 0.$(shell git rev-list --count HEAD)-1
P = $(notdir $(wildcard ${BUILD}/apparmor.d/*))
P = $(filter-out dpkg,$(notdir $(wildcard ${BUILD}/apparmor.d/*)))
.PHONY: all build enforce full install local $(P) pkg dpkg rpm lint clean
@ -85,6 +85,7 @@ rpm:
lint:
@shellcheck --shell=bash \
PKGBUILD configure dists/build.sh \
tests/packer/src/init.sh tests/packer/src/aa-update tests/packer/init/clean.sh \
debian/${PKGNAME}.postinst debian/${PKGNAME}.postrm
clean:

View file

@ -1,8 +1,7 @@
# Maintainer: Alexandre Pujol <alexandre@pujol.io>
# shellcheck disable=SC2034,SC2154,SC2164
# Warning: for development only, use https://aur.archlinux.org/packages/apparmor.d-git
# for production use.
# Warning: for development only, use https://aur.archlinux.org/packages/apparmor.d-git for production use.
pkgname=apparmor.d
pkgver=0.001

View file

@ -8,6 +8,6 @@ cd "$HOME/Projects/apparmor.d"
case "$DISTRIBUTION" in
arch) make pkg ;;
debian | ubuntu | whonix) make dpkg ;;
opensuse-tumbleweed) make rpm ;;
opensuse*) make rpm ;;
*) ;;
esac