From ff4911c17f6970551dfbc8d759fccf9ff3f41d6d Mon Sep 17 00:00:00 2001 From: Christoph Ruegg Date: Sun, 26 Jan 2014 15:20:14 +0100 Subject: [PATCH] Build: cleaning can now be omitted with the incremental parameter --- build.fsx | 9 ++++++++- docs/tools/build-docs.fsx | 2 +- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/build.fsx b/build.fsx index 2296da58..7140bb1a 100644 --- a/build.fsx +++ b/build.fsx @@ -14,12 +14,17 @@ Environment.CurrentDirectory <- __SOURCE_DIRECTORY__ // PREPARE +Target "Start" DoNothing Target "Clean" (fun _ -> CleanDirs ["out"; "obj"; "temp"]) Target "RestorePackages" RestorePackages Target "AssemblyInfo" DoNothing Target "Prepare" DoNothing -"Clean" ==> "RestorePackages" ==> "AssemblyInfo" ==> "Prepare" +"Start" + =?> ("Clean", not (hasBuildParam "incremental")) + ==> "RestorePackages" + ==> "AssemblyInfo" + ==> "Prepare" // BUILD @@ -52,6 +57,8 @@ Target "Test" (fun _ -> // DOCUMENTATION +Target "CleanDocs" (fun _ -> CleanDirs ["out" @@ "docs"]) + Target "Docs" (fun _ -> executeFSIWithArgs "docs/tools" "build-docs.fsx" ["--define:RELEASE"] [] |> ignore ) diff --git a/docs/tools/build-docs.fsx b/docs/tools/build-docs.fsx index a9c523ba..bc603bda 100644 --- a/docs/tools/build-docs.fsx +++ b/docs/tools/build-docs.fsx @@ -83,7 +83,7 @@ let buildDocumentation () = let sub = if dir.Length > content.Length then dir.Substring(content.Length + 1) else "." Literate.ProcessDirectory ( dir, docTemplate, output @@ sub, replacements = ("root", root)::info, - layoutRoots = layoutRoots ) + layoutRoots = layoutRoots, references=false, lineNumbers=true ) // Generate copyFiles()