Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/windirstat/premake-4.x.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--samples/project/CppSharedLib/premake4.lua5
-rw-r--r--samples/project/CppStaticLib/premake4.lua5
-rw-r--r--samples/project/CsSharedLib/premake4.lua5
-rw-r--r--samples/project/premake4.lua6
-rw-r--r--src/actions/clean/_clean.lua6
5 files changed, 17 insertions, 10 deletions
diff --git a/samples/project/CppSharedLib/premake4.lua b/samples/project/CppSharedLib/premake4.lua
index 7f6ae09..4177c3e 100644
--- a/samples/project/CppSharedLib/premake4.lua
+++ b/samples/project/CppSharedLib/premake4.lua
@@ -9,3 +9,8 @@ project "CppSharedLib"
configuration "Release"
targetdir "lib/release"
+
+
+ if _ACTION == "clean" then
+ os.rmdir("lib")
+ end \ No newline at end of file
diff --git a/samples/project/CppStaticLib/premake4.lua b/samples/project/CppStaticLib/premake4.lua
index 91edebd..4e60fe6 100644
--- a/samples/project/CppStaticLib/premake4.lua
+++ b/samples/project/CppStaticLib/premake4.lua
@@ -9,3 +9,8 @@ project "CppStaticLib"
configuration "Release"
targetdir "lib/release"
+
+
+ if _ACTION == "clean" then
+ os.rmdir("lib")
+ end \ No newline at end of file
diff --git a/samples/project/CsSharedLib/premake4.lua b/samples/project/CsSharedLib/premake4.lua
index e8df542..c8d65e2 100644
--- a/samples/project/CsSharedLib/premake4.lua
+++ b/samples/project/CsSharedLib/premake4.lua
@@ -9,3 +9,8 @@ project "CsSharedLib"
configuration "Release"
targetdir "lib/release"
+
+
+ if _ACTION == "clean" then
+ os.rmdir("lib")
+ end \ No newline at end of file
diff --git a/samples/project/premake4.lua b/samples/project/premake4.lua
index b39956b..5482b75 100644
--- a/samples/project/premake4.lua
+++ b/samples/project/premake4.lua
@@ -19,10 +19,8 @@ include "CppSharedLib"
include "CsSharedLib"
include "CppStaticLib"
-function onclean()
+
+if _ACTION == "clean" then
os.rmdir("bin")
- os.rmdir("CppSharedLib/lib")
- os.rmdir("CppStaticLib/lib")
- os.rmdir("CsSharedLib/lib")
end
diff --git a/src/actions/clean/_clean.lua b/src/actions/clean/_clean.lua
index 107e064..5ad6cd7 100644
--- a/src/actions/clean/_clean.lua
+++ b/src/actions/clean/_clean.lua
@@ -83,11 +83,5 @@
action.onclean(solutions, projects, targets)
end
end
-
- -- global cleaner
- if (type(onclean) == "function") then
- onclean()
- end
-
end,
}