Przeglądaj źródła

Build only if src directory exists.

Cesar Blum Silveira 10 lat temu
rodzic
commit
f46b3a2db6
1 zmienionych plików z 2 dodań i 2 usunięć
  1. 2 2
      makefile.shade

+ 2 - 2
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);
     }
-  }
+  }