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
|
|
|
|
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
2017-06-20 15:16:41 +00:00
|
|
|
override LDLIBS += -lsepol -lselinux -lsemanage
|
2008-08-19 19:30:36 +00:00
|
|
|
SEMODULE_OBJS = semodule.o
|
|
|
|
|
2013-10-29 16:21:02 +00:00
|
|
|
all: semodule genhomedircon
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
semodule: $(SEMODULE_OBJS)
|
|
|
|
|
2013-10-09 21:54:02 +00:00
|
|
|
genhomedircon:
|
|
|
|
ln -sf semodule genhomedircon
|
|
|
|
|
2008-08-19 19:30:36 +00:00
|
|
|
install: all
|
2018-02-14 09:57:09 +00:00
|
|
|
-mkdir -p $(DESTDIR)$(SBINDIR)
|
|
|
|
install -m 755 semodule $(DESTDIR)$(SBINDIR)
|
|
|
|
(cd $(DESTDIR)$(SBINDIR); ln -sf semodule genhomedircon)
|
|
|
|
test -d $(DESTDIR)$(MANDIR)/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/man8
|
|
|
|
install -m 644 semodule.8 $(DESTDIR)$(MANDIR)/man8/
|
|
|
|
install -m 644 genhomedircon.8 $(DESTDIR)$(MANDIR)/man8/
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
relabel:
|
|
|
|
|
|
|
|
clean:
|
2013-10-29 16:21:02 +00:00
|
|
|
-rm -f semodule *.o genhomedircon
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
indent:
|
|
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
|