Add capabilites of executing extra commands in make test
This commit is contained in:
		
							parent
							
								
									e574ab65d3
								
							
						
					
					
						commit
						fa3f2fb3cc
					
				| @ -3,3 +3,8 @@ include ../test_common.mk | ||||
| EXTRA_C_FLAGS := | ||||
| EXTRA_LINK_FLAGS := | ||||
| BIN_ARGS := | ||||
| 
 | ||||
| CUSTOM_PRE_BUILD := 1 | ||||
| 
 | ||||
| custom_pre_build: | ||||
| 	@echo "You can execute extra commands here before occlum build." | ||||
|  | ||||
| @ -43,8 +43,11 @@ LINK_FLAGS = $(C_FLAGS) -pie $(EXTRA_LINK_FLAGS) | ||||
| #############################################################################
 | ||||
| # Build
 | ||||
| #############################################################################
 | ||||
| all: custom_pre_build $(ALL_BUILD_SUBDIRS) $(BIN) $(DEPS_FILE) | ||||
| 
 | ||||
| all: $(ALL_BUILD_SUBDIRS) $(BIN) $(DEPS_FILE) | ||||
| ifneq ($(CUSTOM_PRE_BUILD), 1) | ||||
| custom_pre_build: | ||||
| endif | ||||
| 
 | ||||
| $(ALL_BUILD_SUBDIRS): | ||||
| 	@mkdir -p $@ | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user