blob: 418046684b20302960bc4305d683e23f482c4198 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
.POSIX:
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
CC = gcc
dwmblocks: dwmblocks.o
$(CC) dwmblocks.o -lX11 -o dwmblocks
dwmblocks.o: dwmblocks.c config.h
$(CC) -c dwmblocks.c
clean:
rm -f *.o *.gch dwmblocks
install: dwmblocks
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
$(MAKE) manpage
manpage:
mkdir -p $(MANPREFIX)/man1
cat dwmblocks.1 > $(MANPREFIX)/man1/dwmblocks.1
chmod 644 $(MANPREFIX)/man1/dwmblocks.1
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks
.PHONY: clean install uninstall
|