2020-05-31 15:59:42 +00:00
|
|
|
.POSIX:
|
|
|
|
|
|
|
|
PREFIX = /usr/local
|
2020-03-03 19:56:08 +00:00
|
|
|
|
2019-03-24 22:36:52 +00:00
|
|
|
output: dwmblocks.o
|
|
|
|
gcc dwmblocks.o -lX11 -o dwmblocks
|
2020-03-01 12:01:56 +00:00
|
|
|
dwmblocks.o: dwmblocks.c config.h
|
2020-01-02 15:31:24 +00:00
|
|
|
gcc -c -lX11 dwmblocks.c
|
2019-03-24 22:31:05 +00:00
|
|
|
clean:
|
2020-04-08 15:06:01 +00:00
|
|
|
rm -f *.o *.gch dwmblocks
|
2019-03-27 00:32:08 +00:00
|
|
|
install: output
|
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
|