Home | History | Annotate | Download | only in load_policy
      1 # Installation directories.
      2 PREFIX ?= $(DESTDIR)/usr
      3 SBINDIR ?= $(DESTDIR)/sbin
      4 MANDIR ?= $(PREFIX)/share/man
      5 LOCALEDIR ?= /usr/share/locale
      6 
      7 CFLAGS ?= -Werror -Wall -W
      8 override CFLAGS += $(LDFLAGS) -DUSE_NLS -DLOCALEDIR="\"$(LOCALEDIR)\"" -DPACKAGE="\"policycoreutils\""
      9 override LDLIBS += -lsepol -lselinux
     10 
     11 TARGETS=$(patsubst %.c,%,$(sort $(wildcard *.c)))
     12 
     13 all: $(TARGETS)
     14 
     15 install: all
     16 	-mkdir -p $(SBINDIR)
     17 	install -m 755 $(TARGETS) $(SBINDIR)
     18 	test -d $(MANDIR)/man8 || install -m 755 -d $(MANDIR)/man8
     19 	install -m 644 load_policy.8 $(MANDIR)/man8/
     20 
     21 clean:
     22 	-rm -f $(TARGETS) *.o 
     23 
     24 indent:
     25 	../../scripts/Lindent $(wildcard *.[ch])
     26 
     27 relabel:
     28 	/sbin/restorecon $(SBINDIR)/load_policy 
     29