From 958b336cef6e02496afa2189e52040bfce4b1e3e Mon Sep 17 00:00:00 2001 From: starkos Date: Thu, 8 Jan 2009 19:28:45 +0000 Subject: Added missing os.copyfile() function (untested on Posix yet) --- samples/project/premake4.lua | 35 ++++++++++++++++++++++++++--------- 1 file changed, 26 insertions(+), 9 deletions(-) (limited to 'samples') 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 -- cgit v1.2.3