summaryrefslogtreecommitdiff
path: root/dwmblocks/Makefile
diff options
context:
space:
mode:
authorSoominIm <111330163+SoominIm@users.noreply.github.com>2024-03-02 14:45:42 -0600
committerSoominIm <111330163+SoominIm@users.noreply.github.com>2024-03-02 14:45:42 -0600
commit5017790af4d8d7d9d7c9b41044a34ed015bc570e (patch)
tree0c8adc7f95a396ac25c0e57b528f8a3f38b9ec16 /dwmblocks/Makefile
Initial commit
Diffstat (limited to 'dwmblocks/Makefile')
-rwxr-xr-xdwmblocks/Makefile19
1 files changed, 19 insertions, 0 deletions
diff --git a/dwmblocks/Makefile b/dwmblocks/Makefile
new file mode 100755
index 0000000..5cfbb5a
--- /dev/null
+++ b/dwmblocks/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