blob: 4f6b305e94b498acfb6a8e384a9fc4a8711091ce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
PREFIX ?= /usr/local
output: dwmblocks.o
gcc dwmblocks.o -lX11 -o dwmblocks
dwmblocks.o: dwmblocks.c config.h
gcc -c -lX11 dwmblocks.c
clean:
rm *.o *.gch dwmblocks
install: output
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks
|