aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile4
-rw-r--r--src/Makefile4
2 files changed, 6 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3cf2eea..1c9e4e5 100644
--- a/Makefile
+++ b/Makefile
@@ -17,9 +17,11 @@ build: $(EXECUTABLE)
$(EXECUTABLE): $(SRC_DIR)/export.a
$(CC) $(CFLAGS) -o $@ $<
-$(SRC_DIR)/export.a:
+$(SRC_DIR)/export.a: .JUST_CHECK
$(MAKE) -C $(SRC_DIR) export.a
clean:
$(MAKE) -C $(SRC_DIR) clean
rm -f $(EXECUTABLE)
+
+.JUST_CHECK:
diff --git a/src/Makefile b/src/Makefile
index 8ffa1ab..719b8ea 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -10,7 +10,7 @@ build: export.a
export.a: $(OBJ_FILES) $(SUBCOMPONENTS_EXPORT)
ar -crT $@ $^
-$(SUBCOMPONENTS_EXPORT):
+$(SUBCOMPONENTS_EXPORT): .JUST_CHECK
$(MAKE) -C $(dir $@) export.a
clean:
@@ -27,4 +27,6 @@ clean:
sed 's,\($*\)\.o[ :]*,\1.o $@ : ,g' < $@.$$$$ > $@; \
rm -f $@.$$$$
+.JUST_CHECK:
+
include $(DEP_FILES)