mirror of
https://github.com/gbdev/rgbds.git
synced 2025-11-20 18:22:07 +00:00
Document that -MG and -MC count READFILE
This commit is contained in:
@@ -155,7 +155,7 @@ _rgbasm_completions() {
|
|||||||
parse_short_opt "$cur_word"
|
parse_short_opt "$cur_word"
|
||||||
|
|
||||||
if [[ "$state" = 'normal' ]]; then
|
if [[ "$state" = 'normal' ]]; then
|
||||||
mapfile -t COMPREPLY < <(compgen -W "${!opts[*]}" -P "$cur_word" ''; compgen -W '-MG -MP -MQ -MT' "$cur_word")
|
mapfile -t COMPREPLY < <(compgen -W "${!opts[*]}" -P "$cur_word" ''; compgen -W '-MC -MG -MP -MQ -MT' "$cur_word")
|
||||||
return 0
|
return 0
|
||||||
elif [[ "$optlen" = "${#cur_word}" && "$state" != "warning" ]]; then
|
elif [[ "$optlen" = "${#cur_word}" && "$state" != "warning" ]]; then
|
||||||
# This short option group only awaits its argument!
|
# This short option group only awaits its argument!
|
||||||
|
|||||||
42
man/rgbasm.1
42
man/rgbasm.1
@@ -14,8 +14,8 @@
|
|||||||
.Op Fl g Ar chars
|
.Op Fl g Ar chars
|
||||||
.Op Fl I Ar path
|
.Op Fl I Ar path
|
||||||
.Op Fl M Ar depend_file
|
.Op Fl M Ar depend_file
|
||||||
.Op Fl MC
|
|
||||||
.Op Fl MG
|
.Op Fl MG
|
||||||
|
.Op Fl MC
|
||||||
.Op Fl MP
|
.Op Fl MP
|
||||||
.Op Fl MT Ar target_file
|
.Op Fl MT Ar target_file
|
||||||
.Op Fl MQ Ar target_file
|
.Op Fl MQ Ar target_file
|
||||||
@@ -100,11 +100,12 @@ Add a new
|
|||||||
.Dq include path ;
|
.Dq include path ;
|
||||||
.Ar path
|
.Ar path
|
||||||
must point to a directory.
|
must point to a directory.
|
||||||
When a
|
When any
|
||||||
.Ic INCLUDE
|
.Ic INCLUDE
|
||||||
.Pq including the implicit one from Fl P
|
.Pq including the implicit one from Fl P ,
|
||||||
|
.Ic INCBIN ,
|
||||||
or
|
or
|
||||||
.Ic INCBIN
|
.Ic READFILE
|
||||||
is attempted,
|
is attempted,
|
||||||
.Nm
|
.Nm
|
||||||
first looks up the provided path from its working directory; if this fails, it tries again from each of the
|
first looks up the provided path from its working directory; if this fails, it tries again from each of the
|
||||||
@@ -115,6 +116,23 @@ Write
|
|||||||
.Xr make 1
|
.Xr make 1
|
||||||
dependencies to
|
dependencies to
|
||||||
.Ar depend_file .
|
.Ar depend_file .
|
||||||
|
.It Fl MG
|
||||||
|
To be used in conjunction with
|
||||||
|
.Fl M .
|
||||||
|
This makes
|
||||||
|
.Nm
|
||||||
|
assume that missing files are auto-generated: when any
|
||||||
|
.Ic INCLUDE
|
||||||
|
.Pq including the implicit one from Fl P ,
|
||||||
|
.Ic INCBIN ,
|
||||||
|
or
|
||||||
|
.Ic READFILE
|
||||||
|
is attempted on a non-existent file, it is added as a dependency, then
|
||||||
|
.Nm
|
||||||
|
exits normally or continues processing (depending on whether
|
||||||
|
.Fl MC
|
||||||
|
was enabled) instead of erroring out.
|
||||||
|
This feature is used in automatic updating of Makefiles.
|
||||||
.It Fl MC
|
.It Fl MC
|
||||||
Implies
|
Implies
|
||||||
.Fl MG .
|
.Fl MG .
|
||||||
@@ -126,22 +144,6 @@ Note that this is
|
|||||||
recommended if any non-existent dependencies would have influenced subsequent processing, e.g. by causing an
|
recommended if any non-existent dependencies would have influenced subsequent processing, e.g. by causing an
|
||||||
.Ic IF
|
.Ic IF
|
||||||
condition to take a different branch.
|
condition to take a different branch.
|
||||||
.It Fl MG
|
|
||||||
To be used in conjunction with
|
|
||||||
.Fl M .
|
|
||||||
This makes
|
|
||||||
.Nm
|
|
||||||
assume that missing files are auto-generated: when
|
|
||||||
.Ic INCLUDE
|
|
||||||
.Pq including the implicit one from Fl P
|
|
||||||
or
|
|
||||||
.Ic INCBIN
|
|
||||||
is attempted on a non-existent file, it is added as a dependency, then
|
|
||||||
.Nm
|
|
||||||
exits normally or continues processing (depending on whether
|
|
||||||
.Fl MC
|
|
||||||
was enabled) instead of erroring out.
|
|
||||||
This feature is used in automatic updating of Makefiles.
|
|
||||||
.It Fl MP
|
.It Fl MP
|
||||||
When enabled, this adds a phony target to the rules emitted by
|
When enabled, this adds a phony target to the rules emitted by
|
||||||
.Fl M
|
.Fl M
|
||||||
|
|||||||
Reference in New Issue
Block a user