From 07d2062572c2668156dbd3dbaeedc53ddcb0d907 Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Wed, 16 Oct 2013 12:58:51 +1100 Subject: [PATCH] Makefile: make it easy to suppress the "-D" flag to "install". Some versions of "install" do not support '-D', and it isn't needed when installing to default location. So all make INSTALL=install to suppress the -D Reported-by: Christian Sonne Signed-off-by: NeilBrown --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index c118623..a4723ae 100644 --- a/Makefile +++ b/Makefile @@ -9,8 +9,8 @@ endif CFLAGS=$(OptDbg) -I. $(CWFLAGS) # STRIP = -s -INSTALL = /usr/bin/install -DESTDIR = +INSTALL = /usr/bin/install -D +DESTDIR = BINDIR = /usr/bin MANDIR = /usr/share/man MAN1DIR = $(MANDIR)/man1 @@ -48,8 +48,8 @@ clean: find . -name core -o -name '*.tmp*' -o -name .tmp -o -name .time | xargs rm -f install : wiggle wiggle.1 - $(INSTALL) -D $(STRIP) -m 755 wiggle $(DESTDIR)$(BINDIR)/wiggle - $(INSTALL) -D -m 644 wiggle.1 $(DESTDIR)$(MAN1DIR)/wiggle.1 + $(INSTALL) $(STRIP) -m 755 wiggle $(DESTDIR)$(BINDIR)/wiggle + $(INSTALL) -m 644 wiggle.1 $(DESTDIR)$(MAN1DIR)/wiggle.1 version : ReadMe.c wiggle.1 @rm -f version -- 2.39.5