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 8a1ed0a..cbf982c 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