summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorroot <root@bengtsson.win>2021-12-27 08:54:58 +0000
committerroot <root@bengtsson.win>2021-12-27 08:54:58 +0000
commit2b7448b257b71d82da5e14c08577d694a84b6882 (patch)
tree36857402a69ea452772571cf53ef3f1c15efb6e3 /Makefile
dwmblocks addedHEADmaster
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5cfbb5a
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+.POSIX:
+
+PREFIX = /usr/local
+CC = gcc
+
+dwmblocks: dwmblocks.o
+ $(CC) dwmblocks.o -lX11 -o dwmblocks
+dwmblocks.o: dwmblocks.c config.h
+ $(CC) -c dwmblocks.c
+clean:
+ rm -f *.o *.gch dwmblocks
+install: dwmblocks
+ mkdir -p $(DESTDIR)$(PREFIX)/bin
+ cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
+ chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
+uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks
+
+.PHONY: clean install uninstall