mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-24 15:02:44 +00:00
48dc232627
Signed-off-by: Stephen Smalley <sds@tycho.nsa.gov>
35 lines
898 B
Makefile
35 lines
898 B
Makefile
PYTHON ?= python
|
|
|
|
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
LIBDIR ?= $(PREFIX)/lib
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
MANDIR = $(PREFIX)/share/man
|
|
PYLIBVER ?= $(shell $(PYTHON) -c 'import sys;print("python%d.%d" % sys.version_info[0:2])')
|
|
PYTHONLIBDIR ?= $(LIBDIR)/$(PYLIBVER)
|
|
BASHCOMPLETIONDIR ?= $(DESTDIR)/usr/share/bash-completion/completions
|
|
|
|
TARGETS=semanage
|
|
|
|
BASHCOMPLETIONS=semanage-bash-completion.sh
|
|
|
|
all: $(TARGETS)
|
|
|
|
install: all
|
|
[ -d $(MANDIR)/man8 ] || mkdir -p $(MANDIR)/man8
|
|
-mkdir -p $(SBINDIR)
|
|
install -m 755 semanage $(SBINDIR)
|
|
install -m 644 *.8 $(MANDIR)/man8
|
|
test -d $(PYTHONLIBDIR)/site-packages || install -m 755 -d $(PYTHONLIBDIR)/site-packages
|
|
install -m 755 seobject.py $(PYTHONLIBDIR)/site-packages
|
|
-mkdir -p $(BASHCOMPLETIONDIR)
|
|
install -m 644 $(BASHCOMPLETIONS) $(BASHCOMPLETIONDIR)/semanage
|
|
|
|
test:
|
|
@$(PYTHON) test-semanage.py -a
|
|
clean:
|
|
|
|
indent:
|
|
|
|
relabel:
|