dwmblocks/Makefile
2021-03-20 15:22:45 +05:30

20 lines
389 B
Makefile

.POSIX:
PREFIX = /usr/local
CC = gcc
dwmblocks: main.o
$(CC) main.o -lX11 -o dwmblocks
main.o: main.c config.h
$(CC) -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