From b863e99388248018430ff55e0128ef9f1293d461 Mon Sep 17 00:00:00 2001 From: Ralph Sennhauser Date: Sun, 1 Dec 2024 07:50:18 +0100 Subject: [PATCH] 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 --- build/premake/premake5.lua | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/build/premake/premake5.lua b/build/premake/premake5.lua index c8355ef6d0..c0f9095228 100644 --- a/build/premake/premake5.lua +++ b/build/premake/premake5.lua @@ -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 = "../.."