Home | History | Annotate | Download | only in sestatus
      1 # Installation directories.
      2 PREFIX ?= $(DESTDIR)/usr
      3 SBINDIR ?= $(PREFIX)/sbin
      4 MANDIR = $(PREFIX)/share/man
      5 ETCDIR ?= $(DESTDIR)/etc
      6 LIBDIR ?= $(PREFIX)/lib
      7 
      8 CFLAGS ?= -Werror -Wall -W
      9 override CFLAGS += -I$(PREFIX)/include -D_FILE_OFFSET_BITS=64
     10 LDLIBS = -lselinux -L$(LIBDIR)
     11 
     12 all: sestatus
     13 
     14 sestatus:  sestatus.o 
     15 
     16 install: all
     17 	[ -d $(MANDIR)/man8 ] || mkdir -p $(MANDIR)/man8
     18 	[ -d $(MANDIR)/man5 ] || mkdir -p $(MANDIR)/man5
     19 	-mkdir -p $(SBINDIR)
     20 	install -m 755 sestatus $(SBINDIR)
     21 	install -m 644 sestatus.8 $(MANDIR)/man8
     22 	install -m 644 sestatus.conf.5 $(MANDIR)/man5
     23 	-mkdir -p $(ETCDIR)
     24 	install -m 644 sestatus.conf $(ETCDIR)
     25 
     26 clean:
     27 	rm -f sestatus *.o 
     28 
     29 indent:
     30 	../../scripts/Lindent $(wildcard *.[ch])
     31 
     32 relabel:
     33