Make "make install-client" BSD-compatible and more portable
[nagcollect.git] / 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