Change `cp`/`chmod` to `install`
[dwmblocks.git] / Makefile
index c45a563..5f2bb98 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,7 +6,6 @@ clean:
        rm -f *.o *.gch dwmblocks
 install: output
        mkdir -p $(DESTDIR)$(PREFIX)/bin
-       cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
-       chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
+       install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks
 uninstall:
        rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks