Make with $(filter-out $@,$(MAKECMDGOALS))
Lory Pelli <[email protected]> Thu, 2 Jul 2026 12:33:50 +0200
| Newsgroups | gmane.comp.gnu.make.bugs |
|---|---|
| Message-ID | <CAMoqPnVE9i3DQaQUaQmYQ_k=kd2QQjD818d9thPjNiafqoDE6Q@mail.gmail.com> |
--000000000000a9d24c06559e58f9
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
composer:
@docker compose run --rm composer composer $(filter-out
$@,$(MAKECMDGOALS))
%:
@:
~/Desktop/TestPHP> make composer test
Container testphp-composer-run-21a40fa7230c Creating
Container testphp-composer-run-21a40fa7230c Created
Command "test" is not defined.
What's next:
Debug this Compose error with Gordon =E2=86=92 docker ai "help me fix t=
his
compose error"
make: *** [composer] Error 1
~/Desktop/TestPHP> make composer test -a
/Library/Developer/CommandLineTools/usr/bin/make: invalid option -- a
Usage: make [options] [target] ...
Options:
-b, -m Ignored for compatibility.
-B, --always-make Unconditionally make all targets.
-C DIRECTORY, --directory=3DDIRECTORY
Change to DIRECTORY before doing anything.
-d Print lots of debugging information.
--debug[=3DFLAGS] Print various types of debugging informatio=
n.
-e, --environment-overrides
Environment variables override makefiles.
-f FILE, --file=3DFILE, --makefile=3DFILE
Read FILE as a makefile.
-h, --help Print this message and exit.
-i, --ignore-errors Ignore errors from commands.
-I DIRECTORY, --include-dir=3DDIRECTORY
Search DIRECTORY for included makefiles.
-j [N], --jobs[=3DN] Allow N jobs at once; infinite jobs with no
arg.
-k, --keep-going Keep going when some targets can't be made.
-l [N], --load-average[=3DN], --max-load[=3DN]
Don't start multiple jobs unless load is
below N.
-L, --check-symlink-times Use the latest mtime between symlinks and
target.
-n, --just-print, --dry-run, --recon
Don't actually run any commands; just print
them.
-o FILE, --old-file=3DFILE, --assume-old=3DFILE
Consider FILE to be very old and don't remake
it.
-p, --print-data-base Print make's internal database.
-q, --question Run no commands; exit status says if up to
date.
-r, --no-builtin-rules Disable the built-in implicit rules.
-R, --no-builtin-variables Disable the built-in variable settings.
-s, --silent, --quiet Don't echo commands.
-S, --no-keep-going, --stop
Turns off -k.
-t, --touch Touch targets instead of remaking them.
-v, --version Print the version number of make and exit.
-w, --print-directory Print the current directory.
--no-print-directory Turn off -w, even if it was turned on
implicitly.
-W FILE, --what-if=3DFILE, --new-file=3DFILE, --assume-new=3DFILE
Consider FILE to be infinitely new.
--warn-undefined-variables Warn when an undefined variable is referenced=
.
-N OPTION, --NeXT-option=3DOPTION
Turn on value of NeXT OPTION.
This program built for i386-apple-darwin11.3.0
Report bugs to <[email protected]>
I think this should be fixed, because args with one or more dashes in front
of them are interpreted by make even if they shouldn't
--000000000000a9d24c06559e58f9
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable
<div dir=3D"ltr">composer:<br>=C2=A0 @docker compose run --rm composer comp=
oser $(filter-out $@,$(MAKECMDGOALS))<br>%:<br>=C2=A0 @:<div><br></div><div=
>~/Desktop/TestPHP> make composer test<br>Container testphp-composer-run=
-21a40fa7230c Creating <br>Container testphp-composer-run-21a40fa7230c Crea=
ted <br><br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 <br>=C2=A0 Command =
"test" is not defined. =C2=A0<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 <br><br><br><br>What's next:<br>=C2=A0 =C2=A0 Debug this =
Compose error with Gordon =E2=86=92 docker ai "help me fix this compos=
e error"<br>make: *** [composer] Error 1</div><div><br>~/Desktop/TestP=
HP> make composer test -a<br>/Library/Developer/CommandLineTools/usr/bin=
/make: invalid option -- a<br>Usage: make [options] [target] ...<br>Options=
:<br>=C2=A0 -b, -m =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0Ignored for compatibility.<br>=C2=A0 -B, --always-make =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Unconditionally make all targets.<br>=C2=
=A0 -C DIRECTORY, --directory=3DDIRECTORY<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 Change to DIRECTORY before doing anything.<br>=C2=A0 -d =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0Print lots of debugging information.<br>=C2=A0 --debug[=3DFLAGS] =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Print various types of debugging informa=
tion.<br>=C2=A0 -e, --environment-overrides<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 Environment variables override makefiles.<br>=C2=A0 -f FILE, --file=3DF=
ILE, --makefile=3DFILE<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Read FILE as a make=
file.<br>=C2=A0 -h, --help =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
=C2=A0 =C2=A0Print this message and exit.<br>=C2=A0 -i, --ignore-errors =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Ignore errors from commands.<br>=C2=A0 -I DIREC=
TORY, --include-dir=3DDIRECTORY<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Search D=
IRECTORY for included makefiles.<br>=C2=A0 -j [N], --jobs[=3DN] =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0Allow N jobs at once; infinite jobs with no arg.<br=
>=C2=A0 -k, --keep-going =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Keep goin=
g when some targets can't be made.<br>=C2=A0 -l [N], --load-average[=3D=
N], --max-load[=3DN]<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Don't start mul=
tiple jobs unless load is below N.<br>=C2=A0 -L, --check-symlink-times =C2=
=A0 Use the latest mtime between symlinks and target.<br>=C2=A0 -n, --just-=
print, --dry-run, --recon<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Don't actua=
lly run any commands; just print them.<br>=C2=A0 -o FILE, --old-file=3DFILE=
, --assume-old=3DFILE<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Consider FILE to be=
very old and don't remake it.<br>=C2=A0 -p, --print-data-base =C2=A0 =
=C2=A0 =C2=A0 Print make's internal database.<br>=C2=A0 -q, --question =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0Run no commands; exit statu=
s says if up to date.<br>=C2=A0 -r, --no-builtin-rules =C2=A0 =C2=A0 =C2=A0=
Disable the built-in implicit rules.<br>=C2=A0 -R, --no-builtin-variables =
=C2=A0Disable the built-in variable settings.<br>=C2=A0 -s, --silent, --qui=
et =C2=A0 =C2=A0 =C2=A0 Don't echo commands.<br>=C2=A0 -S, --no-keep-go=
ing, --stop<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=
=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Turns off -k.<br>=C2=A0 -t, -=
-touch =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Touch target=
s instead of remaking them.<br>=C2=A0 -v, --version =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 Print the version number of make and exit.<br>=
=C2=A0 -w, --print-directory =C2=A0 =C2=A0 =C2=A0 Print the current directo=
ry.<br>=C2=A0 --no-print-directory =C2=A0 =C2=A0 =C2=A0 =C2=A0Turn off -w, =
even if it was turned on implicitly.<br>=C2=A0 -W FILE, --what-if=3DFILE, -=
-new-file=3DFILE, --assume-new=3DFILE<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0=
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Cons=
ider FILE to be infinitely new.<br>=C2=A0 --warn-undefined-variables =C2=A0=
Warn when an undefined variable is referenced.<br>=C2=A0 -N OPTION, --NeXT-=
option=3DOPTION<br>=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =
=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 Turn on value of NeXT OPTI=
ON.<br><br>This program built for i386-apple-darwin11.3.0<br>Report bugs to=
<<a href=3D"mailto:[email protected]">[email protected]</a>></div><div=
><br></div><div>I think this should be fixed, because args with one or more=
dashes in front of them are interpreted by make even if they shouldn't=
</div></div>
--000000000000a9d24c06559e58f9--