mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-27 07:27:24 +01:00
build: add make dev name=<profile-name>.
This commit is contained in:
parent
c5505dee8b
commit
7ba556b15c
1 changed files with 7 additions and 1 deletions
8
Makefile
8
Makefile
|
@ -9,7 +9,7 @@ PKGDEST := /tmp/pkg
|
|||
PKGNAME := apparmor.d
|
||||
P = $(filter-out dpkg,$(notdir $(wildcard ${BUILD}/apparmor.d/*)))
|
||||
|
||||
.PHONY: all build enforce full install local $(P) pkg dpkg rpm tests lint man docs serve clean
|
||||
.PHONY: all build enforce full install local $(P) dev package pkg dpkg rpm tests lint man docs serve clean
|
||||
|
||||
all: build
|
||||
@./${BUILD}/prebuild --complain
|
||||
|
@ -71,6 +71,12 @@ $(P):
|
|||
done;
|
||||
@systemctl restart apparmor || systemctl status apparmor
|
||||
|
||||
name ?=
|
||||
dev:
|
||||
@go run ./cmd/prebuild --complain --file $(shell find apparmor.d -iname ${name})
|
||||
@sudo install -Dm644 ${BUILD}/${name} /etc/apparmor.d/${name}
|
||||
@sudo systemctl restart apparmor || systemctl status apparmor
|
||||
|
||||
dist ?= archlinux
|
||||
package:
|
||||
@bash dists/docker.sh ${dist}
|
||||
|
|
Loading…
Reference in a new issue