dwmblocks/Makefile

20 lines
403 B
Makefile
Raw Permalink Normal View History

2022-01-08 17:15:46 +00:00
.POSIX:
PREFIX = /usr/local
CC = gcc
dwmblocks: main.o
$(CC) main.o -lX11 -Ofast -o dwmblocks
main.o: main.c config.h
$(CC) -Ofast -c main.c
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