aboutsummaryrefslogtreecommitdiffstats
path: root/mk
diff options
context:
space:
mode:
authorMattias Andrée <maandree@member.fsf.org>2015-12-10 16:20:04 +0100
committerMattias Andrée <maandree@member.fsf.org>2015-12-10 16:20:04 +0100
commit9d137b7976caa5176ac270bfee2bb6b57668cd03 (patch)
tree853a9f27afdb3d673860a5e1e387e00ff1d6e184 /mk
parentupdate todo (diff)
downloadscrotty-9d137b7976caa5176ac270bfee2bb6b57668cd03.tar.gz
scrotty-9d137b7976caa5176ac270bfee2bb6b57668cd03.tar.bz2
scrotty-9d137b7976caa5176ac270bfee2bb6b57668cd03.tar.xz
mostly splitting the source
Signed-off-by: Mattias Andrée <maandree@member.fsf.org>
Diffstat (limited to 'mk')
-rw-r--r--mk/lang-c.mk9
1 files changed, 6 insertions, 3 deletions
diff --git a/mk/lang-c.mk b/mk/lang-c.mk
index a8f9896..5d952b6 100644
--- a/mk/lang-c.mk
+++ b/mk/lang-c.mk
@@ -153,7 +153,7 @@ aux/%.o: $(v)src/%.c $(foreach H,$(__H),$(v)$(H))
@$(ECHO_EMPTY)
# Link object files into a command.
-# Dependencies are declared below..
+# Dependencies are declared below.
bin/%:
@$(PRINTF_INFO) '\e[00;01;31mLD\e[34m %s\e[00;32m$A\n' "$@"
@$(MKDIR) -p bin
@@ -161,8 +161,11 @@ bin/%:
@$(ECHO_EMPTY)
# Dependencies for the rule above.
-$(foreach B,$(_BIN),$(foreach O,$(_OBJ_$(B)),bin/$(B): aux/$(O).o\
-))
+include aux/lang-c.mk
+aux/lang-c.mk: Makefile
+ @$(MKDIR) -p aux
+ @$(ECHO) > aux/lang-c.mk
+ @$(foreach B,$(_BIN),$(ECHO) bin/$(B): $(foreach O,$(_OBJ_$(B)),aux/$(O).o) >> aux/lang-c.mk)
# INSTALL RULES: