]> git.armaanb.net Git - dwmblocks.git/blob - Makefile
Merge pull request #15 from tomboehmer/issue9
[dwmblocks.git] / Makefile
1 PREFIX ?= /usr/local
2
3 output: dwmblocks.c blocks.def.h blocks.h
4         cc `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
5 blocks.h:
6         cp blocks.def.h $@
7
8
9 clean:
10         rm -f *.o *.gch dwmblocks
11 install: output
12         mkdir -p $(DESTDIR)$(PREFIX)/bin
13         cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
14         chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
15 uninstall:
16         rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks