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