selinux/policycoreutils/scripts/Makefile
Aleksei Nikiforov 0445e65d83 Allow installing translated man pages
Signed-off-by: Aleksei Nikiforov <darktemplar@basealt.ru>
2019-01-28 12:03:57 +01:00

27 lines
544 B
Makefile

# Installation directories.
LINGUAS ?= ru
PREFIX ?= /usr
SBINDIR ?= $(PREFIX)/sbin
MANDIR ?= $(PREFIX)/share/man
.PHONY: all
all: fixfiles
install: all
-mkdir -p $(DESTDIR)$(SBINDIR)
install -m 755 fixfiles $(DESTDIR)$(SBINDIR)
-mkdir -p $(DESTDIR)$(MANDIR)/man8
install -m 644 fixfiles.8 $(DESTDIR)$(MANDIR)/man8/
for lang in $(LINGUAS) ; do \
if [ -e $${lang} ] ; then \
mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \
install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \
fi ; \
done
clean:
indent:
relabel: