2008-08-19 19:30:36 +00:00
|
|
|
# Installation directories.
|
2018-12-25 15:25:05 +00:00
|
|
|
LINGUAS ?= ru
|
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
|
|
|
|
2011-08-04 13:53:34 +00:00
|
|
|
all: semodule_package semodule_unpackage
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
semodule_package: semodule_package.o
|
|
|
|
|
|
|
|
install: all
|
2018-02-14 09:57:15 +00:00
|
|
|
-mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
install -m 755 semodule_package $(DESTDIR)$(BINDIR)
|
|
|
|
install -m 755 semodule_unpackage $(DESTDIR)$(BINDIR)
|
|
|
|
test -d $(DESTDIR)$(MANDIR)/man8 || install -m 755 -d $(DESTDIR)$(MANDIR)/man8
|
|
|
|
install -m 644 semodule_package.8 $(DESTDIR)$(MANDIR)/man8/
|
|
|
|
install -m 644 semodule_unpackage.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:
|
2011-09-19 11:09:41 +00:00
|
|
|
-rm -f semodule_package semodule_unpackage *.o
|
2008-08-19 19:30:36 +00:00
|
|
|
|
|
|
|
indent:
|
|
|
|
../../scripts/Lindent $(wildcard *.[ch])
|
|
|
|
|