Re: Catching passed options to makeinfo
Heime <[email protected]> Mon, 08 Jun 2026 16:16:44 +0000
| Newsgroups | gmane.comp.gnu.make.general |
|---|---|
| Message-ID | <0_SDtLE1D7kQCL5vDN7wt1ZsWHyghfXG-IMDpsB3BphrqkyRQdUYpf0TBwb-166kwvRzvRAOlG3rHIgruQznuPzFLTmu7_o15xK-bp5Ghc4=@protonmail.com> |
On Tuesday, June 9th, 2026 at 12:06 AM, Paul Smith <[email protected]> wrote: > On Sun, 2026-06-07 at 08:57 +0000, Heime wrote: > > I want to avoid passing using a variable like this > > > > make -f myfile.mk opt=3D--split=3Dchapter > > > > Rather, I want a direct setting like thisn > > > > make -f myfile.mk -- --html --split=3Dchapter > > > > And be able to pass all option to the command part of a > > makefile rule. >=20 > What you want to do is not possible. Make is not a general-purpose > interpreter that allows makefiles to investigate and interpret its > command-line arguments. >=20 > The only thing you can do is write a shell script wrapper around make, > that will parse the arguments and pass them to make using a variable > assignment. Are shell script wrappers for running makefiles common? =20 > -- > Paul D. Smith <[email protected]> Find some GNU Make tips at: > https://www.gnu.org http://make.mad-scientist.net > "Please remain calm...I may be mad, but I am a professional." --Mad > Scientist >=20 >=20 >