mirror of
https://github.com/roddhjav/apparmor.d.git
synced 2024-12-27 23:48:00 +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
|
PKGNAME := apparmor.d
|
||||||
P = $(filter-out dpkg,$(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 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
|
all: build
|
||||||
@./${BUILD}/prebuild --complain
|
@./${BUILD}/prebuild --complain
|
||||||
|
@ -71,6 +71,12 @@ $(P):
|
||||||
done;
|
done;
|
||||||
@systemctl restart apparmor || systemctl status apparmor
|
@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
|
dist ?= archlinux
|
||||||
package:
|
package:
|
||||||
@bash dists/docker.sh ${dist}
|
@bash dists/docker.sh ${dist}
|
||||||
|
|
Loading…
Reference in a new issue