dwmblocks-custom/Makefile

20 lines
403 B
Makefile
Raw Normal View History

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