aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-09-01 23:44:08 +0200
committerNathanael Sensfelder <SpamShield0@MultiAgentSystems.org>2017-09-01 23:44:08 +0200
commitb3d8dfadab20d8aabea1fdad8070a668c3c75c15 (patch)
treee43d2dee8fa653b6a858e489bacbfd9e628492bc
parent9441ae8cfe0bb5da4e67cdb76880d3ef291db8a9 (diff)
downloadstorage-b3d8dfadab20d8aabea1fdad8070a668c3c75c15.zip
storage-b3d8dfadab20d8aabea1fdad8070a668c3c75c15.tar.bz2
Forces checking of subcomponents.
-rw-r--r--Makefile6
-rw-r--r--src/Makefile4
2 files changed, 7 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 08487e9..34a335e 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ CFLAGS += -D_POSIX_C_SOURCE=200809L
CFLAGS += $(PTHREADS_LIB_FLAGS)
CFLAGS += $(MATH_LIB_FLAGS)
################################################################################
-EXECUTABLE = jh-lowercase
+EXECUTABLE = jh-storage
SRC_DIR = ./src
################################################################################
export
@@ -19,9 +19,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..729feaa 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)