summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorQuentin Rameau <quinq@fifth.space>2017-09-17 22:31:26 +0200
committerAaron Marcher <me@drkhsh.at>2017-09-18 08:32:30 +0200
commite04a3853643df1c98a451969d515d8850f138bcc (patch)
tree7569a183f05f5297ddf12628898976c7897de1f0 /Makefile
parent11d4bec6481886abb889cbeded5c8f52e5dfd844 (diff)
Fix missing config.h in Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index d690612..d657981 100644
--- a/Makefile
+++ b/Makefile
@@ -5,7 +5,7 @@
include config.mk
REQ = util
-HDR = arg.h
+HDR = arg.h config.h
COM =\
battery\
cpu\
@@ -52,6 +52,9 @@ user.o: user.c config.mk $(HDR) $(REQ:=.h)
volume.o: volume.c config.mk $(HDR) $(REQ:=.h)
wifi.o: wifi.c config.mk $(HDR) $(REQ:=.h)
+config.h:
+ cp config.def.h $@
+
.o:
$(CC) -o $@ $(LDFLAGS) $< $(COM:=.o) $(REQ:=.o) $(LDLIBS)