commit
8b313712dc
1 changed files with 5 additions and 4 deletions
9
Makefile
9
Makefile
|
@ -1,14 +1,15 @@
|
|||
.POSIX:
|
||||
|
||||
PREFIX = /usr/local
|
||||
CC = gcc
|
||||
|
||||
output: dwmblocks.o
|
||||
gcc dwmblocks.o -lX11 -o dwmblocks
|
||||
dwmblocks: dwmblocks.o
|
||||
$(CC) dwmblocks.o -lX11 -o dwmblocks
|
||||
dwmblocks.o: dwmblocks.c config.h
|
||||
gcc -c -lX11 dwmblocks.c
|
||||
$(CC) -c dwmblocks.c
|
||||
clean:
|
||||
rm -f *.o *.gch dwmblocks
|
||||
install: output
|
||||
install: dwmblocks
|
||||
mkdir -p $(DESTDIR)$(PREFIX)/bin
|
||||
cp -f dwmblocks $(DESTDIR)$(PREFIX)/bin
|
||||
chmod 755 $(DESTDIR)$(PREFIX)/bin/dwmblocks
|
||||
|
|
Loading…
Reference in a new issue