summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorSam Chudnick <sam@chudnick.com>2021-11-07 06:45:23 -0500
committerSam Chudnick <sam@chudnick.com>2021-11-07 06:45:23 -0500
commitab94e030534305f2bc8fc08a081fd3d5279e49df (patch)
tree64aa1ef45970bc7a0797cb1f31ab3d46868164c9 /Makefile
initial commit
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