make-rules/shared-macros.mk
branchs11-update
changeset 2434 6c9bb5cf5610
parent 2395 dd214a1128f8
child 2576 f1b6ecbb2d1e
equal deleted inserted replaced
2433:0f0e1a4f811b 2434:6c9bb5cf5610
    86 CLONEY =	$(WS_TOOLS)/cloney
    86 CLONEY =	$(WS_TOOLS)/cloney
    87 
    87 
    88 CONFIG_SHELL =	/bin/bash
    88 CONFIG_SHELL =	/bin/bash
    89 
    89 
    90 PKG_REPO =	file:$(WS_REPO)
    90 PKG_REPO =	file:$(WS_REPO)
       
    91 
       
    92 COMPONENT_SRC_NAME =	$(COMPONENT_NAME)
    91 
    93 
    92 COMPONENT_DIR =	$(shell pwd)
    94 COMPONENT_DIR =	$(shell pwd)
    93 SOURCE_DIR =	$(COMPONENT_DIR)/$(COMPONENT_SRC)
    95 SOURCE_DIR =	$(COMPONENT_DIR)/$(COMPONENT_SRC)
    94 BUILD_DIR =	$(COMPONENT_DIR)/build
    96 BUILD_DIR =	$(COMPONENT_DIR)/build
    95 PROTO_DIR =	$(BUILD_DIR)/prototype/$(MACH)
    97 PROTO_DIR =	$(BUILD_DIR)/prototype/$(MACH)
   645 
   647 
   646 # If there are no tests to execute
   648 # If there are no tests to execute
   647 NO_TESTS =	test-nothing
   649 NO_TESTS =	test-nothing
   648 test-nothing:
   650 test-nothing:
   649 	@echo "There are no tests available at this time."
   651 	@echo "There are no tests available at this time."
       
   652 
       
   653 # default behaviour for 'component-hook' target is to echo the component
       
   654 # name and version information, but more complex behaviour can be implemented
       
   655 # via command line setting of the COMPONENT_HOOK macro.
       
   656 COMPONENT_HOOK ?=	echo $(COMPONENT_NAME) $(COMPONENT_VERSION)
       
   657 
       
   658 component-hook:
       
   659 	@$(COMPONENT_HOOK)