2008-08-19 19:30:36 +00:00
|
|
|
# Installation directories.
|
2023-08-14 12:57:37 +00:00
|
|
|
LINGUAS ?=
|
2018-02-14 09:57:15 +00:00
|
|
|
PREFIX ?= /usr
|
2008-08-19 19:30:36 +00:00
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
|
|
|
|
|
|
CFLAGS ?= -Werror -Wall -W
|
2017-06-20 15:16:41 +00:00
|
|
|
override LDLIBS += -lsepol
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
all: semodule_link
|
|
|
|
|
|
|
|
semodule_link: semodule_link.o
|
|
|
|
|
|
|
|
install: all
|
2018-02-14 09:57:15 +00:00
|
|
|
-mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
install -m 755 semodule_link $(DESTDIR)$(BINDIR)
|
|
|
|
test -d $(DESTDIR)$(MANDIR)/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/man8
|
|
|
|
install -m 644 semodule_link.8 $(DESTDIR)$(MANDIR)/man8/
|
2018-12-25 15:25:05 +00:00
|
|
|
for lang in $(LINGUAS) ; do \
|
|
|
|
if [ -e $${lang} ] ; then \
|
|
|
|
test -d $(DESTDIR)$(MANDIR)/$${lang}/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
|
|
|
|
install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
|
|
|
|
fi ; \
|
|
|
|
done
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
relabel:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
-rm -f semodule_link *.o
|
|
|
|
|
|
|
|
indent:
|
|
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
|