Change `cp`/`chmod` to `install`
[dwmblocks.git] / Makefile
1 PREFIX ?= /usr/local
2
3 output: dwmblocks.c blocks.h
4         cc `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
5 clean:
6         rm -f *.o *.gch dwmblocks
7 install: output
8         mkdir -p $(DESTDIR)$(PREFIX)/bin
9         install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks
10 uninstall:
11         rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks