commit 8c4341d84c34d6e579f96d0120f3406e87d502ca
parent 51e7be95d5931b443d3d6fad4b9ffb8f560aac4e
Author: ChristianRomberg <distjubo@gmail.com>
Date: Sun, 11 Feb 2018 22:24:50 +0100
Update Makefile
Couldn't test it yet, but this should delete the previous cnping binary and not fail if its not there, then just cp the new one over. This eliminates the need for the GNU coreutils
Diffstat:
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -30,7 +30,8 @@ searchnet : os_generic.o ping.o searchnet.o
gcc $(CFLAGS) -o $@ $^ -lpthread
linuxinstall : cnping
- sudo install cnping /usr/local/bin/
+ sudo rm -f /usr/local/bin/cnping
+ sudo cp cnping /usr/local/bin/
sudo setcap cap_net_raw+ep /usr/local/bin/cnping
clean :