Index: trunk/premake4.lua
===================================================================
--- trunk/premake4.lua	(revision 16)
+++ trunk/premake4.lua	(revision 17)
@@ -1,4 +1,23 @@
+-- Error handling if user didn't provide any action/target
+-- for the build
+if _ACTION == nil then
+	print "Error! You must specify target build"
+	print "Example: ./premake4 gmake"
+	print "    This will create makefiles for Linux"
+	print ""
+	print "Aborting!"
+	print ""
+	return
+end
+
 solution "nv"
 	configurations { "debug", "release" }
+
+	-- For starters, check the target build.
+	-- If this is a gmake build we must add these
+	-- flags to enable C++11 support.
+	if _ACTION == "gmake" then
+		buildoptions "-std=c++11"
+	end
 
 	targetdir "bin"
