Add check for use of gmake action

Since 7d6a0c695a we use gmake2 instead of gmake, add a check in case
someone calls premake without the wrapper script update-workspace
telling them to use gmake2 instead as support for gmake was removed.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2024-12-01 07:50:18 +01:00
parent 82877e03a1
commit b863e99388
+6
View File
@@ -27,6 +27,12 @@ newoption { trigger = "bindir", description = "Directory for executables (typica
newoption { trigger = "datadir", description = "Directory for data files (typically '/usr/share/games/0ad'); default is ../data/ relative to executable" }
newoption { trigger = "libdir", description = "Directory for libraries (typically '/usr/lib/games/0ad'); default is ./ relative to executable" }
if _ACTION == "gmake" then
print("Premake action 'gmake' is no longer supported by pyrogenesis, use 'gmake2'")
print("Example: 'premake5 --file=build/premake/premake5.lua gmake2'")
os.exit(1)
end
-- Root directory of project checkout relative to this .lua file
rootdir = "../.."