From: Francois Fleuret Date: Mon, 27 Aug 2018 05:53:34 +0000 (+0200) Subject: Now installs in /usr/local/ X-Git-Url: https://fleuret.org/cgi-bin/gitweb/gitweb.cgi?a=commitdiff_plain;h=d02087ddf0cc63c8bf2fa5ed9b0b9284de85e46f;p=dus.git Now installs in /usr/local/ --- diff --git a/Makefile b/Makefile index 7d25f0a..622c52e 100644 --- a/Makefile +++ b/Makefile @@ -21,8 +21,8 @@ # along with dus. If not, see . # -BINARY_PATH = $(DESTDIR)/usr/bin -MAN_PATH = $(DESTDIR)/usr/share/man/man1 +BINARY_PATH = $(DESTDIR)/usr/local/bin +MAN_PATH = $(DESTDIR)/usr/local/share/man/man1 LDFLAGS= @@ -42,7 +42,9 @@ dus: dus.o $(CC) -o $@ $^ $(LDFLAGS) install: dus + makedir -p $(BINARY_PATH) install -m 755 dus $(BINARY_PATH) + makedir -p $(MAN_PATH) install -m 644 dus.1 $(MAN_PATH) gzip $(MAN_PATH)/dus.1