Re: Catching passed options to makeinfo
Paul Smith <[email protected]> Mon, 08 Jun 2026 08:05:51 -0400
| Newsgroups | gmane.comp.gnu.make.general |
|---|---|
| Organization | GNU's Not Linux! |
| Message-ID | <[email protected]> |
On Sun, 2026-06-07 at 08:57 +0000, Heime wrote: > I want to avoid passing using a variable like this >=20 > make -f myfile.mk opt=3D--split=3Dchapter >=20 > Rather, I want a direct setting like thisn >=20 > make -f myfile.mk -- --html --split=3Dchapter >=20 > And be able to pass all option to the command part of a=20 > makefile rule. 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. 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. --=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