aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorLuke Smith <luke@lukesmith.xyz>2020-08-05 07:57:53 -0400
committerGitHub <noreply@github.com>2020-08-05 07:57:53 -0400
commit8b313712dc8000ce65b229e3089f429bc9fc8cd9 (patch)
tree2315da721af6883779772a6207691c471cd65df7 /Makefile
parentd3eed011269519dca2364e480bf32105b1dfd0d9 (diff)
parent841a60783024d882e3dad3713f08712a9deae09e (diff)
downloaddwmblocks-8b313712dc8000ce65b229e3089f429bc9fc8cd9.tar.gz
dwmblocks-8b313712dc8000ce65b229e3089f429bc9fc8cd9.tar.bz2
dwmblocks-8b313712dc8000ce65b229e3089f429bc9fc8cd9.zip
Merge pull request #46 from ryanm0/master
Makefile improvements
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