2016-10-31 17:31:01 +00:00
|
|
|
# Installation directories.
|
2023-08-14 12:57:37 +00:00
|
|
|
LINGUAS ?=
|
2018-02-14 09:57:10 +00:00
|
|
|
PREFIX ?= /usr
|
2016-10-31 17:31:01 +00:00
|
|
|
BINDIR ?= $(PREFIX)/bin
|
|
|
|
MANDIR ?= $(PREFIX)/share/man
|
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: chcat
|
|
|
|
|
|
|
|
install: all
|
2018-02-14 09:57:10 +00:00
|
|
|
-mkdir -p $(DESTDIR)$(BINDIR)
|
|
|
|
install -m 755 chcat $(DESTDIR)$(BINDIR)
|
|
|
|
-mkdir -p $(DESTDIR)$(MANDIR)/man8
|
|
|
|
install -m 644 chcat.8 $(DESTDIR)$(MANDIR)/man8/
|
2018-12-25 15:25:05 +00:00
|
|
|
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
|
2016-10-31 17:31:01 +00:00
|
|
|
|
|
|
|
clean:
|
|
|
|
|
|
|
|
indent:
|
|
|
|
|
|
|
|
relabel:
|
2019-01-05 19:37:59 +00:00
|
|
|
|
|
|
|
test:
|