From f8a997b2b7b6548f6b43f373e9971477c6630a7e Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Fri, 1 Sep 2017 23:42:49 +0200 Subject: Forces checking of subcomponents. --- Makefile | 4 +++- src/Makefile | 4 +++- 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) -- cgit v1.2.3-70-g09d2