diff options
author | starkos <none@none> | 2009-01-08 22:28:45 +0300 |
---|---|---|
committer | starkos <none@none> | 2009-01-08 22:28:45 +0300 |
commit | 958b336cef6e02496afa2189e52040bfce4b1e3e (patch) | |
tree | efbb1560e287984aa40312d60b091629519307ee /samples | |
parent | 0bc941ccab5db3ba051df7ffd918f4b96f711a17 (diff) |
Added missing os.copyfile() function (untested on Posix yet)
Diffstat (limited to 'samples')
-rw-r--r-- | samples/project/premake4.lua | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/samples/project/premake4.lua b/samples/project/premake4.lua index 5482b75..369ee49 100644 --- a/samples/project/premake4.lua +++ b/samples/project/premake4.lua @@ -1,5 +1,7 @@ solution "PremakeTestbox" configurations { "Debug", "Release" } + +-- solution level configuration configuration "Debug" targetdir "bin/debug" @@ -11,16 +13,31 @@ solution "PremakeTestbox" flags { "Optimize" } defines { "NDEBUG" } + +-- include all the projects -include "CppConsoleApp" -include "CsConsoleApp" -include "CppWindowedApp" -include "CppSharedLib" -include "CsSharedLib" -include "CppStaticLib" + include "CppConsoleApp" + include "CsConsoleApp" + include "CppWindowedApp" + include "CppSharedLib" + include "CsSharedLib" + include "CppStaticLib" + + +-- add to the built-in clean action + + if _ACTION == "clean" then + os.rmdir("bin") + end + -if _ACTION == "clean" then - os.rmdir("bin") -end +-- add a new install action + newaction { + trigger = "install", + description = "Install the project", + execute = function () + os.copyfile("premake4.lua", "../premake4.lua") + end + }
\ No newline at end of file |