From: Evan Broder Date: Tue, 28 Oct 2008 01:58:48 +0000 (-0400) Subject: Support installing moreutils into prefixes other than /usr X-Git-Tag: 0.33~3 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=220a73731d4506912e8ec2ecca2e33abdf4e01fe;p=moreutils Support installing moreutils into prefixes other than /usr --- diff --git a/Makefile b/Makefile index b0595c4..2cf8d53 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,7 @@ PERLSCRIPTS=vidir vipe ts combine zrun MANS=sponge.1 vidir.1 vipe.1 isutf8.1 ts.1 combine.1 ifdata.1 ifne.1 pee.1 zrun.1 mispipe.1 lckdo.1 CFLAGS=-O2 -g -Wall INSTALL_BIN?=install -s +PREFIX=/usr DOCBOOK2XMAN="docbook2x-man" @@ -12,12 +13,12 @@ clean: rm -f $(BINS) $(MANS) install: - mkdir -p $(DESTDIR)/usr/bin - $(INSTALL_BIN) $(BINS) $(DESTDIR)/usr/bin - install $(PERLSCRIPTS) $(DESTDIR)/usr/bin + mkdir -p $(DESTDIR)$(PREFIX)/bin + $(INSTALL_BIN) $(BINS) $(DESTDIR)$(PREFIX)/bin + install $(PERLSCRIPTS) $(DESTDIR)$(PREFIX)/bin - mkdir -p $(DESTDIR)/usr/share/man/man1 - install $(MANS) $(DESTDIR)/usr/share/man/man1 + mkdir -p $(DESTDIR)$(PREFIX)/share/man/man1 + install $(MANS) $(DESTDIR)$(PREFIX)/share/man/man1 check: isutf8 ./check-isutf8