Browse Source

[LibOS/shim/Makefile] Don't build glibc unnecessarily

Keep Success.build file by .SECONDARY instead of .INTERMEDIATE.
Isaku Yamahata 6 years ago
parent
commit
36d243a045
1 changed files with 2 additions and 2 deletions
  1. 2 2
      LibOS/Makefile

+ 2 - 2
LibOS/Makefile

@@ -19,11 +19,11 @@ format:
 
 
 ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
 ifeq ($(findstring x86_64,$(SYS))$(findstring linux,$(SYS)),x86_64linux)
 
 
-.INTERMEDIATE: $(BUILD_DIR)/Build.success
+.SECONDARY: $(BUILD_DIR)/Build.success
 
 
 $(BUILD_DIR)/Build.success: $(BUILD_DIR)/Makefile
 $(BUILD_DIR)/Build.success: $(BUILD_DIR)/Makefile
 	@echo "Building glibc, may take a while to finish. Warning messages may show up. If this process terminates with failures, see \"$(BUILD_DIR)/build.log\" for more information."
 	@echo "Building glibc, may take a while to finish. Warning messages may show up. If this process terminates with failures, see \"$(BUILD_DIR)/build.log\" for more information."
-	cd $(BUILD_DIR) && ($(MAKE) 2>&1 >> build.log)
+	($(MAKE) -C $(BUILD_DIR) 2>&1 >> build.log) && touch $@
 #  2>&1 | tee -a build.log)
 #  2>&1 | tee -a build.log)
 
 
 $(GLIBC_TARGET): $(BUILD_DIR)/Build.success
 $(GLIBC_TARGET): $(BUILD_DIR)/Build.success