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, 2012, Oracle and/or its affiliates. All rights reserved. |
22 # |
22 # |
23 # |
23 # |
24 # Rules and Macros for building opens source software that just uses their |
24 # Rules and Macros for building opens source software that just uses their |
25 # own make and no autoconf-style tools. |
25 # own make and no autoconf-style tools. |
26 # |
26 # |
52 $(CLONEY) $(SOURCE_DIR) $(@D) |
52 $(CLONEY) $(SOURCE_DIR) $(@D) |
53 $(COMPONENT_PRE_BUILD_ACTION) |
53 $(COMPONENT_PRE_BUILD_ACTION) |
54 (cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \ |
54 (cd $(@D) ; $(ENV) $(COMPONENT_BUILD_ENV) \ |
55 $(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS)) |
55 $(GMAKE) $(COMPONENT_BUILD_ARGS) $(COMPONENT_BUILD_TARGETS)) |
56 $(COMPONENT_POST_BUILD_ACTION) |
56 $(COMPONENT_POST_BUILD_ACTION) |
|
57 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
|
58 -$(PARFAIT) build |
|
59 endif |
57 $(TOUCH) [email protected] |
60 $(TOUCH) [email protected] |
58 |
61 |
59 # install the built source into a prototype area |
62 # install the built source into a prototype area |
60 $(BUILD_DIR)/%/.installed: $(BUILD_DIR)/%/.built |
63 $(BUILD_DIR)/%/.installed: $(BUILD_DIR)/%/.built |
61 $(COMPONENT_PRE_INSTALL_ACTION) |
64 $(COMPONENT_PRE_INSTALL_ACTION) |
62 (cd $(@D) ; $(ENV) $(COMPONENT_INSTALL_ENV) $(GMAKE) \ |
65 (cd $(@D) ; $(ENV) $(COMPONENT_INSTALL_ENV) $(GMAKE) \ |
63 $(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS)) |
66 $(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS)) |
64 $(COMPONENT_POST_INSTALL_ACTION) |
67 $(COMPONENT_POST_INSTALL_ACTION) |
65 $(TOUCH) [email protected] |
68 $(TOUCH) [email protected] |
66 |
69 |
|
70 |
67 # test the built source |
71 # test the built source |
68 $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
72 $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
69 $(COMPONENT_PRE_TEST_ACTION) |
73 $(COMPONENT_PRE_TEST_ACTION) |
70 (cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
74 (cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
71 $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) |
75 $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) |
72 $(COMPONENT_POST_TEST_ACTION) |
76 $(COMPONENT_POST_TEST_ACTION) |
73 $(TOUCH) [email protected] |
77 $(TOUCH) [email protected] |
74 |
78 |
|
79 ifeq ($(strip $(PARFAIT_BUILD)),yes) |
|
80 parfait: install |
|
81 -$(PARFAIT) build |
|
82 else |
|
83 parfait: |
|
84 $(MAKE) PARFAIT_BUILD=yes parfait |
|
85 endif |
|
86 |
75 clean:: |
87 clean:: |
76 $(RM) -r $(BUILD_DIR) $(PROTO_DIR) |
88 $(RM) -r $(BUILD_DIR) $(PROTO_DIR) |