aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAidan <torrinfail@gmail.com>2020-08-11 20:50:11 -0600
committerAidan <torrinfail@gmail.com>2020-08-11 20:50:11 -0600
commit7e0bc3f5801ba70fcf6d5824a74e29836b2d57b7 (patch)
treeba94fff7539fe56c8ebf37a59faf2dabc545304c /Makefile
parent8893f2d08aed826532fbb7a7b63e20c5bd938563 (diff)
added blocks.def.h to act as default blocks file so that changes made in
the future will not affect csutom blocks.h files.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 7 insertions, 3 deletions
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