Transform psdk into a real dependency, instead of a target only created after rbuild.
authorHervé Poussineau <hpoussin@reactos.org>
Sun, 26 Aug 2007 12:06:28 +0000 (12:06 +0000)
committerHervé Poussineau <hpoussin@reactos.org>
Sun, 26 Aug 2007 12:06:28 +0000 (12:06 +0000)
Fixes case where compilation wasn't stopping if rbuild was failing/crashing

svn path=/trunk/; revision=28572

reactos/Makefile
reactos/tools/rbuild/backend/mingw/modulehandler.cpp

index cc27327..f9636b0 100644 (file)
@@ -420,7 +420,6 @@ $(ROS_AUTOMAKE): $(RBUILD_TARGET) $(PREAUTO) $(XMLBUILDFILES)
        ${mkdir} $(OUTPUT_)media$(SEP)inf 2>$(NUL)
        $(ECHO_RBUILD)
        $(Q)$(RBUILD_TARGET) $(RBUILD_FLAGS) $(ROS_RBUILDFLAGS) mingw
-       @$(MAKE) psdk
 
 world: all bootcd livecd
 
@@ -626,5 +625,5 @@ clean: makefile_auto_clean
 
 .PHONY: depends
 depends:
-       @-$(rm) makefile.auto
+       @-$(rm) $(ROS_AUTOMAKE)
        @$(MAKE) $(filter-out depends, $(MAKECMDGOALS))
index f26f96c..7c16387 100644 (file)
@@ -2193,6 +2193,11 @@ MingwModuleHandler::GetDefaultDependencies (
                && module.name != "hostzlib" )
 
                dependencies.push_back ( "$(INIT)" );
+
+       if ( module.type != BuildTool
+               && module.name != "psdk" )
+
+               dependencies.push_back ( "$(PSDK_TARGET)" );
 }
 
 void