This adds a "help" build target, which prints out important build targets. The printing is done in a separate shell script, becaue "ninja" insists on print out the "command" before executing it, which makes the help text unreadable.
20 lines
582 B
Bash
Executable File
20 lines
582 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cat << EOF
|
|
usage: ninja [options] [targets...]
|
|
|
|
Run \`ninja -h\` for help on supported options.
|
|
|
|
Build targets:
|
|
build Build artifacts for all configured build modes.
|
|
<mode>-build Build artifacts for a specific build mode.
|
|
|
|
Test targets:
|
|
test Run tests for all configured build modes.
|
|
<mode>-test Run tests for a specific build mode.
|
|
|
|
Packaging targets:
|
|
dist Build distribution packages (.rpm, .deb) for all build modes.
|
|
<mode>-dist Build distribution packages (.rpm, .deb) for a specific build mode.
|
|
EOF
|