2021-03-20 10:52:45 +01:00
|
|
|
.POSIX:
|
|
|
|
|
|
|
|
PREFIX = /usr/local
|
|
|
|
CC = gcc
|
|
|
|
|
|
|
|
dwmblocks: main.o
|
2021-10-12 16:53:42 +02:00
|
|
|
$(CC) main.o -lX11 -Ofast -o dwmblocks
|
2021-03-20 10:52:45 +01:00
|
|
|
main.o: main.c config.h
|
2021-10-12 16:53:42 +02:00
|
|
|
$(CC) -Ofast -c main.c
|
2021-03-20 10:52:45 +01:00
|
|
|
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
|