summaryrefslogtreecommitdiff
path: root/mk/c.mk
diff options
context:
space:
mode:
authorOri Bernstein <ori@eigenstate.org>2012-06-19 01:04:36 -0400
committerOri Bernstein <ori@eigenstate.org>2012-06-19 01:04:36 -0400
commitc056146c07a6521ddbf351f47539058af2436c36 (patch)
treebf003a4082bb27d7810799eead8c63f224ee0554 /mk/c.mk
parenta098baae59b556bbec643aa88aa6a0baa15fa9f2 (diff)
downloadmc-c056146c07a6521ddbf351f47539058af2436c36.tar.gz
Fix up recurring on deps.
Diffstat (limited to 'mk/c.mk')
-rw-r--r--mk/c.mk7
1 files changed, 1 insertions, 6 deletions
diff --git a/mk/c.mk b/mk/c.mk
index 8c090ac..fffd208 100644
--- a/mk/c.mk
+++ b/mk/c.mk
@@ -22,13 +22,8 @@ $(LIB): $(OBJ) $(DEPS)
$(BIN): $(OBJ) $(EXTRADEP) $(DEPS)
$(CC) -o $@ $(OBJ) $(_LIBSRCHPATHS) $(_LIBPATHS)
-.PHONY: $(DEPS)
$(DEPS):
- @for i in $(dir $(DEPS)); do (\
- cd $$i && \
- $(MAKE) || \
- exit 1 \
- ) || exit 1; done
+ @cd $(dir $@) && $(MAKE)
subdirs:
@for i in $(SUB); do (\