dwmblocks/Makefile

20 lines
414 B
Makefile
Raw Permalink Normal View History

2020-05-31 15:59:42 +00:00
.POSIX:
PREFIX = /usr/local
CC = gcc
dwmblocks: dwmblocks.o
$(CC) dwmblocks.o -lX11 -o dwmblocks
2020-03-01 12:01:56 +00:00
dwmblocks.o: dwmblocks.c config.h
$(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
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
2020-05-31 15:59:42 +00:00
.PHONY: clean install uninstall