1 # Installation directories. 2 LINGUAS ?= ru 3 PREFIX ?= /usr 4 BINDIR ?= $(PREFIX)/bin 5 MANDIR ?= $(PREFIX)/share/man 6 7 .PHONY: all 8 all: chcat 9 10 install: 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 22 clean: 23 24 indent: 25 26 relabel: 27 28 test: 29