Make "make install-client" BSD-compatible and more portable
authorAlexander Barton <alex@barton.de>
Sun, 13 Dec 2009 17:47:43 +0000 (18:47 +0100)
committerAlexander Barton <alex@barton.de>
Sun, 13 Dec 2009 17:47:43 +0000 (18:47 +0100)
Makefile

index 8a1ed0a308a2eaac239508ab5ba6d13461a473e9..cbf982c4173079dab7e84fdb138e1a7590e71ed3 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -28,7 +28,9 @@ install-server:
                server/web/nagcollect.php /var/www/nagcollect.php
 
 install-client:
-       install -D -o 0 -g 0 -m 755 -p \
+       install -d -o 0 -g 0 -m 755 \
+               /usr/local/sbin
+       install -c -o 0 -g 0 -m 755 -p \
                client/bin/nagcollect /usr/local/sbin/nagcollect
 
 .PHONY: all install-server install-client