build: De-indent CommandLineArguments.

If no targets are specified, exit with an error. But this should
never happen, since jam implicitly specifies "all" even if
nothing specific is given.
This commit is contained in:
Augustin Cavalier
2024-12-23 15:52:30 -05:00
parent 8b67e745eb
commit 1aabdb2b8d
+5 -2
View File
@@ -5,7 +5,11 @@ rule ProcessCommandLineArguments
# analyze and optionally replace jam's target parameters # analyze and optionally replace jam's target parameters
HAIKU_ORIGINAL_JAM_TARGETS = $(JAM_TARGETS) ; HAIKU_ORIGINAL_JAM_TARGETS = $(JAM_TARGETS) ;
HAIKU_BUILD_PROFILE = ; HAIKU_BUILD_PROFILE = ;
if $(JAM_TARGETS) {
if ! $(JAM_TARGETS) {
Exit "Error: No targets specified!" ;
}
switch $(JAM_TARGETS[1]) { switch $(JAM_TARGETS[1]) {
# If the target to be built is "all" (i.e. the default) and we're in # If the target to be built is "all" (i.e. the default) and we're in
# the output directory, the root directory of the build system, or # the output directory, the root directory of the build system, or
@@ -120,4 +124,3 @@ rule ProcessCommandLineArguments
} }
} }
} }
}