mirror of
https://github.com/SELinuxProject/selinux
synced 2024-12-12 09:05:00 +00:00
6697e4db8b
Signed-off-by: Eric Paris <eparis@redhat.com> Acked-by: Dan Walsh <dwalsh@redhat.com>
37 lines
853 B
Makefile
37 lines
853 B
Makefile
# Installation directories.
|
|
PREFIX ?= $(DESTDIR)/usr
|
|
BINDIR ?= $(PREFIX)/bin
|
|
USRSBINDIR ?= $(PREFIX)/sbin
|
|
SBINDIR ?= $(DESTDIR)/sbin
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
LOCALEDIR ?= $(PREFIX)/share/locale
|
|
|
|
.PHONY: all genhomedircon
|
|
all: fixfiles genhomedircon chcat
|
|
|
|
genhomedircon:
|
|
@echo "#!/bin/sh" > genhomedircon
|
|
@echo >> genhomedircon
|
|
@if [ -z "${SEMODULE_PATH}" ]; then \
|
|
echo "${USRSBINDIR}/semodule -Bn" >> genhomedircon; \
|
|
else \
|
|
echo "${SEMODULE_PATH}/semodule -Bn" >> genhomedircon; \
|
|
fi
|
|
|
|
install: all
|
|
-mkdir -p $(BINDIR)
|
|
install -m 755 chcat $(BINDIR)
|
|
install -m 755 fixfiles $(SBINDIR)
|
|
install -m 755 genhomedircon $(USRSBINDIR)
|
|
-mkdir -p $(MANDIR)/man8
|
|
install -m 644 fixfiles.8 $(MANDIR)/man8/
|
|
install -m 644 genhomedircon.8 $(MANDIR)/man8/
|
|
install -m 644 chcat.8 $(MANDIR)/man8/
|
|
|
|
clean:
|
|
rm -f genhomedircon
|
|
|
|
indent:
|
|
|
|
relabel:
|