2008-08-19 19:30:36 +00:00
|
|
|
# Installation directories.
|
2018-02-14 09:57:09 +00:00
|
|
|
PREFIX ?= /usr
|
2008-08-19 19:30:36 +00:00
|
|
|
SBINDIR ?= $(PREFIX)/sbin
|
|
|
|
MANDIR = $(PREFIX)/share/man
|
2018-02-14 09:57:09 +00:00
|
|
|
ETCDIR ?= /etc
|
2008-08-19 19:30:36 +00:00
|
|
|
|
2013-05-10 12:45:11 +00:00
|
|
|
CFLAGS ?= -Werror -Wall -W
|
2017-04-24 17:59:56 +00:00
|
|
|
override CFLAGS += -D_FILE_OFFSET_BITS=64
|
2017-06-20 15:16:41 +00:00
|
|
|
override LDLIBS += -lselinux
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
all: sestatus
|
|
|
|
|
2017-06-20 15:16:41 +00:00
|
|
|
sestatus: sestatus.o
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
install: all
|
2018-02-14 09:57:09 +00:00
|
|
|
[ -d $(DESTDIR)$(MANDIR)/man8 ] || mkdir -p $(DESTDIR)$(MANDIR)/man8
|
|
|
|
[ -d $(DESTDIR)$(MANDIR)/man5 ] || mkdir -p $(DESTDIR)$(MANDIR)/man5
|
|
|
|
-mkdir -p $(DESTDIR)$(SBINDIR)
|
|
|
|
install -m 755 sestatus $(DESTDIR)$(SBINDIR)
|
|
|
|
install -m 644 sestatus.8 $(DESTDIR)$(MANDIR)/man8
|
|
|
|
install -m 644 sestatus.conf.5 $(DESTDIR)$(MANDIR)/man5
|
|
|
|
-mkdir -p $(DESTDIR)$(ETCDIR)
|
|
|
|
install -m 644 sestatus.conf $(DESTDIR)$(ETCDIR)
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
clean:
|
2017-06-20 15:16:41 +00:00
|
|
|
rm -f sestatus *.o
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
indent:
|
|
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
|
|
|
|
relabel:
|