Norm Jacobs
2012-11-05 76466339d49a19bc37286561e25bc055db2a99bc
15804658 SUNBT7185081-12.0 Userland could use component-hook target from SFW
3 files modified
17 ■■■■ changed files
Makefile 5 ●●●●● patch | view | raw | blame | history
components/Makefile 3 ●●●●● patch | view | raw | blame | history
make-rules/shared-macros.mk 9 ●●●●● patch | view | raw | blame | history
Makefile
@@ -18,7 +18,7 @@
#
# 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
@@ -35,11 +35,12 @@
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)
components/Makefile
@@ -57,6 +57,7 @@
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
@@ -73,6 +74,8 @@
download prep:    $(COMPONENT_DIRS.nosetup)
component-hook:    $(COMPONENT_DIRS.nosetup)
clean:        $(COMPONENT_DIRS.nosetup)
    $(RM) components.mk depends.mk .profile
make-rules/shared-macros.mk
@@ -650,3 +650,12 @@
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)