Merge pull request #12 from kdkasad/patch-1
authortorrinfail <torrinfail@gmail.com>
Thu, 13 Aug 2020 03:20:36 +0000 (21:20 -0600)
committerGitHub <noreply@github.com>
Thu, 13 Aug 2020 03:20:36 +0000 (21:20 -0600)
Change `cp`/`chmod` to `install` in Makefile

1  2 
Makefile

diff --combined Makefile
+++ b/Makefile
@@@ -1,16 -1,11 +1,15 @@@
  PREFIX ?= /usr/local
  
 -output: dwmblocks.c blocks.h
 +output: dwmblocks.c blocks.def.h blocks.h
        cc `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
 +blocks.h:
 +      cp blocks.def.h $@
 +
 +
  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