summaryrefslogtreecommitdiff
path: root/Makefile
blob: 25da9453a22ff95944cd6816997a1c4a50f2e0a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
PREFIX ?= /usr/local
CC ?= cc
LDFLAGS = -lX11

output: dwmblocks.c
	${CC}  dwmblocks.c $(LDFLAGS) -o dwmblocks
clean:
	rm -f *.o *.gch dwmblocks
install: output
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks
uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks