make-rules/ant.mk
changeset 1352 1358a1e1ff4c
parent 261 f7fc4962fa91
child 2164 b580bc10e31a
child 3996 20c0f21bbe1e
equal deleted inserted replaced
1351:5c589218fa09 1352:1358a1e1ff4c
    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) 2011, Oracle and/or its affiliates. All rights reserved.
    21 # Copyright (c) 2011, 2013, Oracle and/or its affiliates. All rights reserved.
    22 #
    22 #
    23 
    23 
    24 ANT=/usr/bin/ant
    24 ANT=/usr/bin/ant
    25 
    25 
    26 COMPONENT_BUILD_ENV += JAVA_HOME="$(JAVA_HOME)"
    26 COMPONENT_BUILD_ENV += JAVA_HOME="$(JAVA_HOME)"
    30 	$(CLONEY) $(SOURCE_DIR) $(@D)
    30 	$(CLONEY) $(SOURCE_DIR) $(@D)
    31 	$(COMPONENT_PRE_BUILD_ACTION)
    31 	$(COMPONENT_PRE_BUILD_ACTION)
    32 	(cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \
    32 	(cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \
    33 		$(ANT) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS))
    33 		$(ANT) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS))
    34 	$(COMPONENT_POST_BUILD_ACTION)
    34 	$(COMPONENT_POST_BUILD_ACTION)
       
    35 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
       
    36 	-$(PARFAIT) $(@D)
       
    37 endif
    35 	$(TOUCH) [email protected]
    38 	$(TOUCH) [email protected]
    36 
    39 
    37 COMPONENT_INSTALL_ENV += JAVA_HOME="$(JAVA_HOME)"
    40 COMPONENT_INSTALL_ENV += JAVA_HOME="$(JAVA_HOME)"
    38 # install the built source into a prototype area
    41 # install the built source into a prototype area
    39 $(BUILD_DIR)/%/.installed:	$(BUILD_DIR)/%/.built
    42 $(BUILD_DIR)/%/.installed:	$(BUILD_DIR)/%/.built
    41 	(cd $(@D) ; $(ENV) $(COMPONENT_INSTALL_ENV) \
    44 	(cd $(@D) ; $(ENV) $(COMPONENT_INSTALL_ENV) \
    42 		$(ANT) $(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS))
    45 		$(ANT) $(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS))
    43 	$(COMPONENT_POST_INSTALL_ACTION)
    46 	$(COMPONENT_POST_INSTALL_ACTION)
    44 	$(TOUCH) [email protected]
    47 	$(TOUCH) [email protected]
    45 
    48 
       
    49 ifeq   ($(strip $(PARFAIT_BUILD)),yes)
       
    50 parfait: build
       
    51 else
       
    52 parfait:
       
    53 	$(MAKE) PARFAIT_BUILD=yes parfait
       
    54 endif
       
    55 
    46 clean::
    56 clean::
    47 	$(RM) -r $(SOURCE_DIR) $(BUILD_DIR)
    57 	$(RM) -r $(SOURCE_DIR) $(BUILD_DIR)