Makefile 461 B

1234567891011121314151617
  1. POLICY_MAKEFILE = /usr/share/selinux/devel/Makefile
  2. POLICY_DIR = $(DESTDIR)/usr/share/selinux/targeted
  3. all:
  4. if [ ! -e $(POLICY_MAKEFILE) ]; then echo "You need to install the SELinux policy development tools (selinux-policy)" && exit 1; fi
  5. $(MAKE) -f $(POLICY_MAKEFILE) $@ || exit 1;
  6. clean:
  7. $(MAKE) -f $(POLICY_MAKEFILE) $@ || exit 1;
  8. install: all
  9. install -d $(POLICY_DIR)
  10. install -m 644 dirsrv.pp $(POLICY_DIR)
  11. load:
  12. /usr/sbin/semodule -i dirsrv.pp