15804658 SUNBT7185081-12.0 Userland could use component-hook target from SFW
| | |
| | | # |
| | | # CDDL HEADER END |
| | | # |
| | | # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved. |
| | | # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved. |
| | | # |
| | | |
| | | include make-rules/shared-macros.mk |
| | |
| | | clobber: TARGET = clobber |
| | | setup: TARGET = setup |
| | | test: TARGET = test |
| | | component-hook: TARGET = component-hook |
| | | |
| | | .DEFAULT: publish |
| | | |
| | | download setup prep build install publish validate clean clobber \ |
| | | test: $(SUBDIRS) |
| | | test component-hook: $(SUBDIRS) |
| | | |
| | | $(SUBDIRS): FORCE |
| | | +echo "$(TARGET) $@" ; $(GMAKE) -C $@ $(TARGET) |
| | |
| | | clean: TARGET = clean |
| | | clobber: TARGET = clobber |
| | | test: TARGET = test |
| | | component-hook: TARGET = component-hook |
| | | prep build install publish test: TEMPLATE_ZONE=$(ZONE) |
| | | prep build install publish test: LOG = >$(WS_LOGS)/$(@F).$(TARGET).log 2>&1 |
| | | |
| | |
| | | |
| | | download prep: $(COMPONENT_DIRS.nosetup) |
| | | |
| | | component-hook: $(COMPONENT_DIRS.nosetup) |
| | | |
| | | clean: $(COMPONENT_DIRS.nosetup) |
| | | $(RM) components.mk depends.mk .profile |
| | | |
| | |
| | | NO_TESTS = test-nothing |
| | | test-nothing: |
| | | @echo "There are no tests available at this time." |
| | | |
| | | # default behaviour for 'component-hook' target is to echo the component |
| | | # name and version information, but more complex behaviour can be implemented |
| | | # via command line setting of the COMPONENT_HOOK macro. |
| | | COMPONENT_HOOK ?= echo $(COMPONENT_NAME) $(COMPONENT_VERSION) |
| | | |
| | | component-hook: |
| | | @$(COMPONENT_HOOK) |
| | | |