]> git.neil.brown.name Git - wiggle.git/commitdiff
Makefile: make it easy to suppress the "-D" flag to "install".
authorNeilBrown <neilb@suse.de>
Wed, 16 Oct 2013 01:58:51 +0000 (12:58 +1100)
committerNeilBrown <neilb@suse.de>
Wed, 16 Oct 2013 01:58:51 +0000 (12:58 +1100)
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 <neilb@suse.de>
Makefile

index c118623dcbfb9039e7d6780833caa0e3de77625b..a4723ae3e042dc5bb466ed26842ab6b4b376a95d 100644 (file)
--- 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