mirror of
https://github.com/mintycube/dwmblocks.git
synced 2024-10-22 14:05:47 +02:00
20 lines
389 B
Makefile
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
|