equal
deleted
inserted
replaced
42 # If component specific make targets need to be used for build or install, they |
42 # If component specific make targets need to be used for build or install, they |
43 # can be specified in |
43 # can be specified in |
44 # COMPONENT_BUILD_TARGETS, COMPONENT_INSTALL_TARGETS |
44 # COMPONENT_BUILD_TARGETS, COMPONENT_INSTALL_TARGETS |
45 # |
45 # |
46 |
46 |
47 $(BUILD_DIR_32)/.built: BITS=32 |
|
48 $(BUILD_DIR_64)/.built: BITS=64 |
|
49 $(BUILD_DIR_32)/.install: BITS=32 |
|
50 $(BUILD_DIR_64)/.install: BITS=64 |
|
51 |
|
52 # set the default target for installation of the component |
|
53 COMPONENT_INSTALL_TARGETS = install |
|
54 |
|
55 # build the configured source |
47 # build the configured source |
56 $(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep |
48 $(BUILD_DIR)/%/.built: $(SOURCE_DIR)/.prep |
57 $(RM) -r $(@D) ; $(MKDIR) $(@D) |
49 $(RM) -r $(@D) ; $(MKDIR) $(@D) |
58 $(CLONEY) $(SOURCE_DIR) $(@D) |
50 $(CLONEY) $(SOURCE_DIR) $(@D) |
59 $(COMPONENT_PRE_BUILD_ACTION) |
51 $(COMPONENT_PRE_BUILD_ACTION) |
68 (cd $(@D) ; $(ENV) $(COMPONENT_INSTALL_ENV) $(GMAKE) \ |
60 (cd $(@D) ; $(ENV) $(COMPONENT_INSTALL_ENV) $(GMAKE) \ |
69 $(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS)) |
61 $(COMPONENT_INSTALL_ARGS) $(COMPONENT_INSTALL_TARGETS)) |
70 $(COMPONENT_POST_INSTALL_ACTION) |
62 $(COMPONENT_POST_INSTALL_ACTION) |
71 $(TOUCH) $@ |
63 $(TOUCH) $@ |
72 |
64 |
|
65 # test the built source |
|
66 $(BUILD_DIR)/%/.tested: $(BUILD_DIR)/%/.built |
|
67 $(COMPONENT_PRE_TEST_ACTION) |
|
68 (cd $(@D) ; $(ENV) $(COMPONENT_TEST_ENV) $(GMAKE) \ |
|
69 $(COMPONENT_TEST_ARGS) $(COMPONENT_TEST_TARGETS)) |
|
70 $(COMPONENT_POST_TEST_ACTION) |
|
71 $(TOUCH) $@ |
|
72 |
73 clean:: |
73 clean:: |
74 $(RM) -r $(BUILD_DIR) $(PROTO_DIR) |
74 $(RM) -r $(BUILD_DIR) $(PROTO_DIR) |