components/Makefile
changeset 774 d0cbca26a17c
parent 623 15f87c23a86e
child 827 0944d8c0158b
equal deleted inserted replaced
773:cfddc5466118 774:d0cbca26a17c
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    16 # fields enclosed by brackets "[]" replaced with your own identifying
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    17 # information: Portions Copyright [yyyy] [name of copyright owner]
    18 #
    18 #
    19 # CDDL HEADER END
    19 # CDDL HEADER END
    20 #
    20 #
    21 # Copyright (c) 2010, 2011, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2010, 2012, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 
    23 
    24 include ../make-rules/shared-macros.mk
    24 include ../make-rules/shared-macros.mk
    25 
    25 
    26 # for now, the assumption is we build any directory with a Makefile.  This may
    26 # for now, the assumption is we build any directory with a Makefile.  This may
    75 
    75 
    76 clean:		$(COMPONENT_DIRS.nosetup)
    76 clean:		$(COMPONENT_DIRS.nosetup)
    77 	$(RM) components.mk depends.mk .profile
    77 	$(RM) components.mk depends.mk .profile
    78 
    78 
    79 clobber:	$(COMPONENT_DIRS.nosetup) clean
    79 clobber:	$(COMPONENT_DIRS.nosetup) clean
       
    80 	@cd ../tools ; echo "clobbering tools..." ; $(GMAKE) clobber
    80 	$(RM) -r $(WS_REPO) $(WS_LOGS) $(WS_LINT_CACHE)
    81 	$(RM) -r $(WS_REPO) $(WS_LOGS) $(WS_LINT_CACHE)
       
    82 
    81 
    83 
    82 setup:	$(WS_LOGS) $(WS_REPO) tools $(WS_LINT_CACHE)
    84 setup:	$(WS_LOGS) $(WS_REPO) tools $(WS_LINT_CACHE)
    83 
    85 
    84 $(WS_LOGS):
    86 $(WS_LOGS):
    85 	$(MKDIR) [email protected]
    87 	$(MKDIR) [email protected]
   102 else
   104 else
   103 	$(MKDIR) $(WS_LINT_CACHE)
   105 	$(MKDIR) $(WS_LINT_CACHE)
   104 endif
   106 endif
   105 
   107 
   106 tools:
   108 tools:
   107 	@cd ../tools ; echo "building tools..." ; $(GMAKE) setup
   109 	@cd ../tools ; echo "building tools..." ; $(GMAKE) clean setup
   108 
   110 
   109 # $(WS_COMPONENTS) is the home directory for the zone user, so create a profile
   111 # $(WS_COMPONENTS) is the home directory for the zone user, so create a profile
   110 # to pass a few things on to zone based builds
   112 # to pass a few things on to zone based builds
   111 .profile:
   113 .profile:
   112 	echo "PATH=$(PATH)" >>[email protected]
   114 	echo "PATH=$(PATH)" >>[email protected]