]> git.neil.brown.name Git - wiggle.git/commitdiff
Use install(1) -d explicitly, avoiding the need for -D
authorAndreas Kohn <andreas.kohn@gmail.com>
Tue, 13 May 2014 23:06:36 +0000 (01:06 +0200)
committerAndreas Kohn <andreas.kohn@gmail.com>
Tue, 13 May 2014 23:10:13 +0000 (01:10 +0200)
-D isn't available on MacOS X by default, but there is not much point
here in using it: we can just create the directories first.

Makefile

index a4723ae3e042dc5bb466ed26842ab6b4b376a95d..9fc12a4d4fdf877a626a7e719182d52b2434012d 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -9,7 +9,7 @@ endif
 CFLAGS=$(OptDbg) -I. $(CWFLAGS)
 
 # STRIP = -s
-INSTALL = /usr/bin/install -D
+INSTALL = /usr/bin/install
 DESTDIR =
 BINDIR  = /usr/bin
 MANDIR  = /usr/share/man
@@ -48,8 +48,9 @@ clean:
        find . -name core -o -name '*.tmp*' -o -name .tmp -o -name .time | xargs rm -f
 
 install : wiggle wiggle.1
-       $(INSTALL) $(STRIP) -m 755 wiggle $(DESTDIR)$(BINDIR)/wiggle
-       $(INSTALL) -m 644 wiggle.1 $(DESTDIR)$(MAN1DIR)/wiggle.1
+       $(INSTALL) -d $(DESTDIR)$(BINDIR) $(DESTDIR)$(MAN1DIR)
+       $(INSTALL) $(STRIP) -m 755 wiggle $(DESTDIR)$(BINDIR)
+       $(INSTALL) -m 644 wiggle.1 $(DESTDIR)$(MAN1DIR)
 
 version : ReadMe.c wiggle.1
        @rm -f version