aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 69b26eaf63a81ff7f3a72e42f1d93b293043cc25 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
PREFIX ?= /usr/local
CC ?= cc

output: dwmblocks.c config.h
	${CC} `pkg-config --cflags x11 --libs x11` dwmblocks.c -o dwmblocks
blocks.h:
	cp blocks.def.h $@


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