Merge pull request #12 from kdkasad/patch-1
[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         install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks
14 uninstall:
15         rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks