From: torrinfail Date: Thu, 13 Aug 2020 03:20:36 +0000 (-0600) Subject: Merge pull request #12 from kdkasad/patch-1 X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=661f3eb4bcdf20dfa97ae58fa8e6f343b07a909e;hp=-c;p=dwmblocks.git Merge pull request #12 from kdkasad/patch-1 Change `cp`/`chmod` to `install` in Makefile --- 661f3eb4bcdf20dfa97ae58fa8e6f343b07a909e diff --combined Makefile index bad5ddd,5f2bb98..3cfa764 --- a/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