Now installs in /usr/local/
authorFrancois Fleuret <francois@fleuret.org>
Mon, 27 Aug 2018 05:53:34 +0000 (07:53 +0200)
committerFrancois Fleuret <francois@fleuret.org>
Mon, 27 Aug 2018 05:53:34 +0000 (07:53 +0200)
Makefile

index 7d25f0a..622c52e 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -21,8 +21,8 @@
 #  along with dus.  If not, see <http://www.gnu.org/licenses/>.
 #
 
-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