Merge pull request #46 from ryanm0/master

Makefile improvements
This commit is contained in:
Luke Smith 2020-08-05 07:57:53 -04:00 committed by GitHub
commit 8b313712dc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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