1# Installation directories. 2LINGUAS ?= ru 3PREFIX ?= /usr 4BINDIR ?= $(PREFIX)/bin 5MANDIR ?= $(PREFIX)/share/man 6 7.PHONY: all 8all: chcat 9 10install: all 11 -mkdir -p $(DESTDIR)$(BINDIR) 12 install -m 755 chcat $(DESTDIR)$(BINDIR) 13 -mkdir -p $(DESTDIR)$(MANDIR)/man8 14 install -m 644 chcat.8 $(DESTDIR)$(MANDIR)/man8/ 15 for lang in $(LINGUAS) ; do \ 16 if [ -e $${lang} ] ; then \ 17 mkdir -p $(DESTDIR)$(MANDIR)/$${lang}/man8 ; \ 18 install -m 644 $${lang}/*.8 $(DESTDIR)$(MANDIR)/$${lang}/man8/ ; \ 19 fi ; \ 20 done 21 22clean: 23 24indent: 25 26relabel: 27 28test: 29