aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: 886a53de208e335776db48f7d3654f8460addf5c (plain)
1
2
3
4
5
6
7
8
9
10
11
PREFIX ?= /usr/local

output: dwmblocks.c blocks.h
	cc `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
clean:
	rm -f *.o *.gch dwmblocks
install: output
	mkdir -p $(DESTDIR)$(PREFIX)/bin
	cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
uninstall:
	rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks