blob: 320184e2a5488429362141f4e7a3cb469d35b239 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
.POSIX:
PREFIX = /usr/local
CC = cc
CFLAGS = -std=c99 -Wall -Wpedantic -D _DEFAULT_SOURCE
dwmblocks: dwmblocks.o
${CC} dwmblocks.o -lX11 -o dwmblocks
dwmblocks.o: dwmblocks.c config.h
${CC} ${CFLAGS} -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
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks
.PHONY: clean install uninstall
|