summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
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 @@
1PREFIX ?= /usr/local
2CC ?= cc
3LDFLAGS = -lX11
4
5output: dwmblocks.c
6 ${CC} dwmblocks.c $(LDFLAGS) -o dwmblocks
7clean:
8 rm -f *.o *.gch dwmblocks
9install: output
10 mkdir -p $(DESTDIR)$(PREFIX)/bin
11 install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks
12uninstall:
13 rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks