Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-pascal / 2015-03

Do the make commands have a way of listing the options and possible values for them?

6 messages · 4 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Jonas Maebe
to vfclists .

vfclists . wrote on Tue, 31 Mar 2015:

The ./configure command used by a lot of unix programs can list the options and possible values for them.

Note that ./configure can only do this if someone explicitly added information about all of those options to the help text of a particular configure script.

Do the make commands for Lazarus and FPC have such an option?

No, nobody has written such a help text for the FPC or Lazarus makefiles. There is some information in the documentation, but it hasn't been updated in a long time and is both incomplete and largely out of date.

Jonas

Tomas Hajny
to Jonas Maebe
Jonas Maebe wrote 17 lines
vfclists . wrote on Tue, 31 Mar 2015: > The ./configure command used by a lot of unix programs can list the > options > and possible values for them. Note that ./configure can only do this if someone explicitly added information about all of those options to the help text of a particular configure script. > Do the make commands for Lazarus and FPC have > such an option? No, nobody has written such a help text for the FPC or Lazarus makefiles. There is some information in the documentation, but it hasn't been updated in a long time and is both incomplete and largely out of date.

For completeness - "make help" is supported for at least both the fpcbuild and fpc Makefiles, but their content is limited to listing the Makefile targets (and even that it somewhat outdated these days) and it does not include any information about additional options modifying the overall behaviour.

Tomas

vfclists .
to Jonas Maebe: vfclists . wrote on Tue, 31 Mar 2015: Note that ./configure can only do this if someone…
Jonas Maebe wrote 22 lines
vfclists . wrote on Tue, 31 Mar 2015: The ./configure command used by a lot of unix programs can list the > options > and possible values for them. > Note that ./configure can only do this if someone explicitly added information about all of those options to the help text of a particular configure script. Do the make commands for Lazarus and FPC have > such an option? > No, nobody has written such a help text for the FPC or Lazarus makefiles. There is some information in the documentation, but it hasn't been updated in a long time and is both incomplete and largely out of date.

Is it possible to work them out from studying the Makefile itself?

Frank Church ======================= http://devblog.brahmancreations.com
vfclists .
to vfclists .
vfclists . wrote 30 lines
On 31 March 2015 at 14:18, Jonas Maebe wrote: > > vfclists . wrote on Tue, 31 Mar 2015: > > The ./configure command used by a lot of unix programs can list the >> options >> and possible values for them. >> > > Note that ./configure can only do this if someone explicitly added > information about all of those options to the help text of a particular > configure script. > > Do the make commands for Lazarus and FPC have >> such an option? >> > > No, nobody has written such a help text for the FPC or Lazarus makefiles. > There is some information in the documentation, but it hasn't been updated > in a long time and is both incomplete and largely out of date. > > > Is it possible to work them out from studying the Makefile itself?

A thought just occurred to me. Do some of the fpcup options correspond exactly to the options used by the make commands?

Frank Church ======================= http://devblog.brahmancreations.com
Mark Morgan Lloyd
to Tomas Hajny: For completeness - "make help" is supported for at least both the fpcbuild and fpc…
Tomas Hajny wrote 21 lines
On Tue, March 31, 2015 15:18, Jonas Maebe wrote: > vfclists . wrote on Tue, 31 Mar 2015: > >> The ./configure command used by a lot of unix programs can list the >> options >> and possible values for them. > Note that ./configure can only do this if someone explicitly added > information about all of those options to the help text of a > particular configure script. > >> Do the make commands for Lazarus and FPC have >> such an option? > No, nobody has written such a help text for the FPC or Lazarus > makefiles. There is some information in the documentation, but it > hasn't been updated in a long time and is both incomplete and largely > out of date. For completeness - "make help" is supported for at least both the fpcbuild and fpc Makefiles, but their content is limited to listing the Makefile targets (and even that it somewhat outdated these days) and it does not include any information about additional options modifying the overall behaviour.

If anybody works on this please could they link to 24789 on Mantis which is sitting there unassigned.

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]