18 lines
345 B
Makefile
18 lines
345 B
Makefile
PREFIX ?= /usr/local
|
|
CC ?= cc
|
|
LDFLAGS = -lX11
|
|
|
|
output: dwmblocks.c blocks.h
|
|
${CC} dwmblocks.c $(LDFLAGS) -o dwmblocks
|
|
blocks.h:
|
|
cp blocks.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
|