components/Makefile
changeset 6 20f80c019d73
parent 2 125cd5d2cd9e
child 21 e651c453e960
--- a/components/Makefile	Wed May 12 00:29:30 2010 -0500
+++ b/components/Makefile	Wed May 12 00:32:41 2010 -0500
@@ -35,6 +35,7 @@
 validate:	TARGET = validate
 clean:		TARGET = clean
 clobber:	TARGET = clobber
+prep build install publish:		LOG =	>$(WS_LOGS)/$(TARGET):[email protected] 2>&1
 
 .DEFAULT:	publish
 
@@ -47,7 +48,7 @@
 	$(RM) -r $(PKG_REPO:file://%=%) $(WS_LOGS)
 endif
 
-setup:	$(WS_LOGS) repo
+setup:	$(WS_LOGS) repo tools
 
 $(WS_LOGS):
 	$(MKDIR) $@
@@ -56,8 +57,11 @@
 	$(PKGSEND) -s $(PKG_REPO) create-repository \
 		--set-property publisher.prefix=$(PUBLISHER)
 
+tools:
+	@cd ../tools ; echo "building tools..." ; $(GMAKE) setup
+
 $(COMPONENT_DIRS):	FORCE
 	@cd $@ ; echo "$(TARGET) \c" ; pwd ; \
-	 $(GMAKE) $(TARGET) >$(WS_LOGS)/$(TARGET):[email protected] 2>&1
+	 $(GMAKE) $(TARGET) $(LOG)
 
 FORCE: