aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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