From 7e0bc3f5801ba70fcf6d5824a74e29836b2d57b7 Mon Sep 17 00:00:00 2001
From: Aidan <torrinfail@gmail.com>
Date: Tue, 11 Aug 2020 20:50:11 -0600
Subject: added blocks.def.h to act as default blocks file so that changes made
 in the future will not affect csutom blocks.h files.

---
 Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

(limited to 'Makefile')

diff --git a/Makefile b/Makefile
index ad7e701..bad5ddd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,11 @@
 PREFIX ?= /usr/local
-CC ?= cc
-output: dwmblocks.c blocks.h
-	${CC} dwmblocks.c `pkg-config --cflags x11` `pkg-config --libs x11` -o dwmblocks
+
+output: dwmblocks.c blocks.def.h blocks.h
+	cc `pkg-config --cflags x11` `pkg-config --libs x11` dwmblocks.c -o dwmblocks
+blocks.h:
+	cp blocks.def.h $@
+
+
 clean:
 	rm -f *.o *.gch dwmblocks
 install: output
-- 
cgit v1.2.1