[mod] tools:building
This commit is contained in:
parent
f4ef700312
commit
a47162a8a0
2 changed files with 7 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
||||||
#!/usr/bin/env python3
|
#!/usr/bin/env python3
|
||||||
|
|
||||||
|
import sys as _sys
|
||||||
import os as _os
|
import os as _os
|
||||||
import argparse as _argparse
|
import argparse as _argparse
|
||||||
|
|
||||||
|
@ -11,7 +12,7 @@ def main():
|
||||||
"-o",
|
"-o",
|
||||||
"--output-directory",
|
"--output-directory",
|
||||||
type = str,
|
type = str,
|
||||||
default = "build",
|
default = "/tmp/authelia-calls",
|
||||||
metavar = "<output-directory>",
|
metavar = "<output-directory>",
|
||||||
help = "output directory",
|
help = "output directory",
|
||||||
)
|
)
|
||||||
|
@ -27,6 +28,7 @@ def main():
|
||||||
" ".join(targets),
|
" ".join(targets),
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
_sys.stdout.write("%s\n" % args.output_directory)
|
||||||
|
|
||||||
|
|
||||||
main()
|
main()
|
||||||
|
|
|
@ -19,18 +19,18 @@ cmd_tsc := ${dir_tools}/typescript/node_modules/.bin/tsc
|
||||||
## rules
|
## rules
|
||||||
|
|
||||||
.PHONY: _default
|
.PHONY: _default
|
||||||
_default: ${dir_build}/authelia-callbacks
|
_default: ${dir_build}/authelia-calls
|
||||||
|
|
||||||
${dir_temp}/authelia-callbacks-unlinked.js: \
|
${dir_temp}/authelia-calls-unlinked.js: \
|
||||||
${dir_lib}/plankton/plankton.d.ts \
|
${dir_lib}/plankton/plankton.d.ts \
|
||||||
${dir_source}/main.ts
|
${dir_source}/main.ts
|
||||||
@ ${cmd_log} "compiling …"
|
@ ${cmd_log} "compiling …"
|
||||||
@ ${cmd_tsc} --lib es2020 --strict $^ --outFile $@
|
@ ${cmd_tsc} --lib es2020 --strict $^ --outFile $@
|
||||||
|
|
||||||
${dir_build}/authelia-callbacks: \
|
${dir_build}/authelia-calls: \
|
||||||
${dir_source}/head.js \
|
${dir_source}/head.js \
|
||||||
${dir_lib}/plankton/plankton.js \
|
${dir_lib}/plankton/plankton.js \
|
||||||
${dir_temp}/authelia-callbacks-unlinked.js
|
${dir_temp}/authelia-calls-unlinked.js
|
||||||
@ ${cmd_log} "linking …"
|
@ ${cmd_log} "linking …"
|
||||||
@ ${cmd_mkdir} $(dir $@)
|
@ ${cmd_mkdir} $(dir $@)
|
||||||
@ ${cmd_cat} $^ > $@
|
@ ${cmd_cat} $^ > $@
|
||||||
|
|
Loading…
Add table
Reference in a new issue