aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 5 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index c2c3c6b..5cfbb5a 100644
--- a/Makefile
+++ b/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