neodotfiles/source/dwmblocks/Makefile
2024-03-28 18:55:20 -04:00

13 lines
366 B
Makefile

PREFIX ?= /usr/local
CC ?= cc
output: dwmblocks.c blocks.h
${CC} -c dwmblocks.c -o dwmblocks.o
${CC} -o dwmblocks dwmblocks.o `pkg-config --cflags x11 --libs x11`
clean:
rm -fv *.o *.gch dwmblocks
install: output
mkdir -pv $(DESTDIR)$(PREFIX)/bin
install -m 0755 dwmblocks $(DESTDIR)$(PREFIX)/bin/dwmblocks
uninstall:
rm -fv $(DESTDIR)$(PREFIX)/bin/dwmblocks