[mod] building:default directories
This commit is contained in:
parent
dba3a54d75
commit
cc904221b2
2 changed files with 36 additions and 6 deletions
36
tools/build
36
tools/build
|
@ -1,5 +1,35 @@
|
||||||
#!/usr/bin/env sh
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
## exec
|
import sys as _sys
|
||||||
|
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 = "/tmp/espe-frontend-zackeneule",
|
||||||
|
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),
|
||||||
|
)
|
||||||
|
)
|
||||||
|
_sys.stdout.write("%s\n" % args.output_directory)
|
||||||
|
|
||||||
|
|
||||||
|
main()
|
||||||
|
|
||||||
make --file=tools/makefile
|
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
|
|
||||||
dir_lib := lib
|
dir_lib := lib
|
||||||
dir_source := source
|
dir_source := source
|
||||||
dir_temp := temp
|
dir_temp := /tmp/espe-frontend-zackeneule-temp
|
||||||
dir_build := build
|
dir_build := build
|
||||||
dir_tools := tools
|
dir_tools := tools
|
||||||
|
|
||||||
|
@ -30,8 +30,8 @@ cmd_tsc := ${dir_tools}/typescript/node_modules/.bin/tsc
|
||||||
|
|
||||||
## rules
|
## rules
|
||||||
|
|
||||||
.PHONY: default
|
.PHONY: _default
|
||||||
default: ${dir_build}/logic.js ${dir_build}/style.css ${dir_build}/index.html data
|
_default: ${dir_build}/logic.js ${dir_build}/style.css ${dir_build}/index.html data
|
||||||
|
|
||||||
${dir_temp}/logic-unlinked.js: \
|
${dir_temp}/logic-unlinked.js: \
|
||||||
${dir_lib}/plankton/plankton.d.ts \
|
${dir_lib}/plankton/plankton.d.ts \
|
||||||
|
|
Loading…
Add table
Reference in a new issue