components/Makefile
changeset 38 cd00ea74156e
parent 34 d20b10eba317
child 53 e398cb2c4b45
equal deleted inserted replaced
37:988ea0021850 38:cd00ea74156e
    37 		| sed -e 's;^$(shell pwd)/;COMPONENT_DIRS += ;g' >[email protected]
    37 		| sed -e 's;^$(shell pwd)/;COMPONENT_DIRS += ;g' >[email protected]
    38 
    38 
    39 include components.mk
    39 include components.mk
    40 
    40 
    41 
    41 
    42 download:	TARGET = download
    42 download:		TARGET = download
    43 prep:		TARGET = prep
    43 prep:			TARGET = prep
    44 build:		TARGET = build
    44 build:			TARGET = build
    45 install:	TARGET = install
    45 install:		TARGET = install
    46 publish:	TARGET = publish
    46 publish:		TARGET = publish
    47 validate:	TARGET = validate
    47 install-packages:	TARGET = install-packages
    48 clean:		TARGET = clean
    48 validate:		TARGET = validate
    49 clobber:	TARGET = clobber
    49 clean:			TARGET = clean
       
    50 clobber:		TARGET = clobber
    50 prep build install publish:		TEMPLATE_ZONE=$(ZONE)
    51 prep build install publish:		TEMPLATE_ZONE=$(ZONE)
    51 prep build install publish:		LOG = >$(WS_LOGS)/[email protected]$(TARGET).log 2>&1
    52 prep build install publish:		LOG = >$(WS_LOGS)/[email protected]$(TARGET).log 2>&1
    52 
    53 
    53 .DEFAULT:	publish
    54 .DEFAULT:	publish
    54 
    55 
    55 download prep build install publish validate: $(COMPONENT_DIRS)
    56 download prep build install publish install-packages validate: $(COMPONENT_DIRS)
    56 
    57 
    57 COMPONENT_DIRS.nosetup =	$(COMPONENT_DIRS:%=%.nosetup)
    58 COMPONENT_DIRS.nosetup =	$(COMPONENT_DIRS:%=%.nosetup)
    58 
    59 
    59 clean:	$(COMPONENT_DIRS:%=%.nosetup)
    60 clean:	$(COMPONENT_DIRS:%=%.nosetup)
    60 	$(RM) components.mk depends.mk .profile
    61 	$(RM) components.mk depends.mk .profile
    80 	echo "PATH=$(PATH)" >>[email protected]
    81 	echo "PATH=$(PATH)" >>[email protected]
    81 	echo "WS_TOP=$(WS_TOP)" >>[email protected]
    82 	echo "WS_TOP=$(WS_TOP)" >>[email protected]
    82 	echo "export PATH WS_TOP" >>[email protected]
    83 	echo "export PATH WS_TOP" >>[email protected]
    83 
    84 
    84 $(COMPONENT_DIRS):	setup FORCE
    85 $(COMPONENT_DIRS):	setup FORCE
    85 	@cd [email protected] ; echo "$(TARGET) [email protected]" ; \
    86 	@cd [email protected] && echo "$(TARGET) [email protected]" && \
    86 	 $(BASS_O_MATIC) $(TEMPLATE_ZONE:%=--template-zone %) \
    87 	 $(BASS_O_MATIC) $(TEMPLATE_ZONE:%=--template-zone %) \
    87 	 		 $(@:%=--component %) --make $(TARGET) $(LOG)
    88 			 $(@:%=--component %) --make $(TARGET) $(LOG)
    88 
    89 
    89 $(COMPONENT_DIRS.nosetup):	FORCE
    90 $(COMPONENT_DIRS.nosetup):	FORCE
    90 	@cd $(@:%.nosetup=%) ; echo "$(TARGET) $(@:%.nosetup=%)" ; \
    91 	@cd $(@:%.nosetup=%) && echo "$(TARGET) $(@:%.nosetup=%)" && \
    91 	 $(BASS_O_MATIC) $(TEMPLATE_ZONE:%=--template-zone %) \
    92 	 $(BASS_O_MATIC) $(TEMPLATE_ZONE:%=--template-zone %) \
    92 	 		 $(@:%.nosetup=--component %) --make $(TARGET) $(LOG)
    93 			 $(@:%.nosetup=--component %) --make $(TARGET) $(LOG)
    93 
    94 
    94 # depends.mk is auto-generated by the build tools, bass-o-matic.py in particular
    95 # depends.mk is auto-generated by the build tools, bass-o-matic.py in particular
    95 depends.mk:	components.mk
    96 depends.mk:	components.mk
    96 	@echo "Generating component dependencies..."
    97 	@echo "Generating component dependencies..."
    97 	@$(BASS_O_MATIC) --workspace=$(WS_TOP) --components=depend \
    98 	@$(BASS_O_MATIC) --workspace=$(WS_TOP) --components=depend \