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