Browse Source

Build: cleaning can now be omitted with the incremental parameter

pull/197/head
Christoph Ruegg 13 years ago
parent
commit
ff4911c17f
  1. 9
      build.fsx
  2. 2
      docs/tools/build-docs.fsx

9
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
)

2
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()

Loading…
Cancel
Save