Files
demus a883a4c038 Add default sources
Fix setup
Use macros for commands
Fix another $ escape
2025-11-30 21:59:04 +01:00

28 lines
622 B
Makefile

TARGET?=${REPO_NAME}
MODULES?=$${TARGET:=.pp.bz2}
SHAREDIR?=/usr/share
SELINUXTYPE?=targeted
all: $${TARGET:=.pp.bz2}
%.pp.bz2: %.pp
@echo Compressing $$^ -\> $$@
bzip2 -9 $$^
%.pp: %.te
make -f $${SHAREDIR}/selinux/devel/Makefile $$@
clean:
rm -f *~ *.tc *.pp *.pp.bz2
rm -rf tmp *.tar.gz
man: install-policy
sepolicy manpage --path . --domain $${TARGET}_t
install-policy: all
semodule -i $${TARGET}.pp.bz2
install: man
install -D -m 644 $${TARGET}.pp.bz2 $${DESTDIR}$${SHAREDIR}/selinux/packages/$${SELINUXTYPE}/$${TARGET}.pp.bz2
install -D -m 644 $${TARGET}_selinux.8 $${DESTDIR}$${SHAREDIR}/man/man8/