aboutsummaryrefslogtreecommitdiffstats
path: root/mk/lang-c.mk
diff options
context:
space:
mode:
Diffstat (limited to '')
-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: