uCBQN/SingeliMake.bqn
2021-10-22 00:17:44 +03:00

19 lines
688 B
BQN
Executable File
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# •Show •args
# resolve arguments & files
siDirRsrcfileRresfileRbuildDir •args
siDir •file.At siDirR
tmpfile •file.At "obj/singeliDeps"
srcfile •file.At srcfileR
resfile •file.At resfileR
depfile (•file.At buildDir) •file.At ".d"˜ ('/') srcfile
# invoke singeli, which creates the result file
("-d" tmpfile "-o" resfile srcfile) •Import siDir •file.At "singeli"
# output dependency file
deps siDir•file.At¨ •file.Lines tmpfile
lnln @+1010
depfile •file.Chars resfileR ": " srcfile ' '¨deps lnln (":"lnln)¨ deps