diff options
author | Sam Chudnick <sam@chudnick.com> | 2021-11-07 06:45:23 -0500 |
---|---|---|
committer | Sam Chudnick <sam@chudnick.com> | 2021-11-07 06:45:23 -0500 |
commit | ab94e030534305f2bc8fc08a081fd3d5279e49df (patch) | |
tree | 64aa1ef45970bc7a0797cb1f31ab3d46868164c9 /Makefile |
initial commit
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 | ||