diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..25da945 --- /dev/null +++ b/Makefile | |||
@@ -0,0 +1,13 @@ | |||
1 | PREFIX ?= /usr/local | ||
2 | CC ?= cc | ||
3 | LDFLAGS = -lX11 | ||
4 | |||
5 | output: dwmblocks.c | ||
6 | ${CC} dwmblocks.c $(LDFLAGS) -o dwmblocks | ||
7 | clean: | ||
8 | rm -f *.o *.gch dwmblocks | ||
9 | install: output | ||
10 | mkdir -p $(DESTDIR)$(PREFIX)/bin | ||
11 | install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks | ||
12 | uninstall: | ||
13 | rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks | ||