From f46b3a2db654fda71c831caa2423487c6b2587aa Mon Sep 17 00:00:00 2001 From: Cesar Blum Silveira Date: Tue, 15 Mar 2016 04:47:10 -0700 Subject: [PATCH] Build only if src directory exists. --- makefile.shade | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/makefile.shade b/makefile.shade index 5a3caf4c44..7b7b2396d9 100644 --- a/makefile.shade +++ b/makefile.shade @@ -11,7 +11,7 @@ var Configuration_Local = '${E("Configuration")}' var ROOT_Local = '${Directory.GetCurrentDirectory()}' var BUILD_DIR_Local = '${Path.Combine(ROOT_Local, "build")}' -#build-compile target='compile' if='IsLinux' +#build-compile target='compile' if='IsLinux && Directory.Exists("src")' @{ var projectFiles = Files.Include("src/**/project.json") .Exclude("src/Microsoft.AspNetCore.DataProtection.SystemWeb/project.json") @@ -23,4 +23,4 @@ var BUILD_DIR_Local = '${Path.Combine(ROOT_Local, "build")}' { File.Copy(nupkg, Path.Combine(BUILD_DIR_Local, Path.GetFileName(nupkg)), true); } - } \ No newline at end of file + }