34 lines
525 B
Text
34 lines
525 B
Text
|
#!/usr/bin/env python3
|
||
|
|
||
|
import os as _os
|
||
|
import argparse as _argparse
|
||
|
|
||
|
|
||
|
def main():
|
||
|
## args
|
||
|
argument_parser = _argparse.ArgumentParser()
|
||
|
argument_parser.add_argument(
|
||
|
"-o",
|
||
|
"--output-directory",
|
||
|
type = str,
|
||
|
default = "build",
|
||
|
metavar = "<output-directory>",
|
||
|
help = "output directory",
|
||
|
)
|
||
|
args = argument_parser.parse_args()
|
||
|
|
||
|
## exec
|
||
|
targets = []
|
||
|
targets.append("_default")
|
||
|
_os.system(
|
||
|
"make dir_build=%s --file=tools/makefile %s"
|
||
|
% (
|
||
|
args.output_directory,
|
||
|
" ".join(targets),
|
||
|
)
|
||
|
)
|
||
|
|
||
|
|
||
|
main()
|
||
|
|