2020-05-31 15:59:42 +00:00
|
|
|
.POSIX:
|
|
|
|
|
|
|
|
PREFIX = /usr/local
|
2020-08-05 09:19:06 +00:00
|
|
|
CC = gcc
|
2020-03-03 19:56:08 +00:00
|
|
|
|
2020-08-05 09:16:36 +00:00
|
|
|
dwmblocks: dwmblocks.o
|
2020-08-05 09:19:06 +00:00
|
|
|
$(CC) dwmblocks.o -lX11 -o dwmblocks
|
2020-03-01 12:01:56 +00:00
|
|
|
dwmblocks.o: dwmblocks.c config.h
|
2020-08-05 09:19:06 +00:00
|
|
|
$(CC) -c dwmblocks.c
|
2019-03-24 22:31:05 +00:00
|
|
|
clean:
|
2020-04-08 15:06:01 +00:00
|
|
|
rm -f *.o *.gch dwmblocks
|
2020-08-05 09:16:36 +00:00
|
|
|
install: dwmblocks
|
2020-03-03 19:56:08 +00:00
|
|
|
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
|
|
|
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
|
|
|
|
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
|
|
|
|
uninstall:
|
|
|
|
rm -f $(DESTDIR)$(PREFIX)/bin/dwmblocks
|
2020-05-31 15:59:42 +00:00
|
|
|
|
|
|
|
.PHONY: clean install uninstall
|