[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3] new option: object-shortname

From: Thomas Martitz
Subject: Re: [PATCH v3] new option: object-shortname
Date: Wed, 8 Feb 2017 09:45:54 +0100

Am 16.01.2017 um 13:56 schrieb Thomas Martitz:
Am 06.01.2017 um 16:33 schrieb Thomas Martitz:
Am 05.01.2017 um 15:31 schrieb Jim Meyering:
On Mon, Aug 29, 2016 at 11:05 PM, Thomas Martitz <address@hidden> wrote:
This option is intended to be used in conjunction with subdir-objects and Automake-time substitutions for included makefile fragments (%C%, %D%). Enabling the option shortens the file name of object files such that the
derived (after canonicalization) from the path is not included.

Enabling the option is basically equivalent to setting foo_SHORTNAME =
foo. However, it also works flawlessly if a Makefile fragment is
conditionally included. Note that actually setting foo_SHORTNAME
still overrides the object name, regardless of this option. This can improve
the modularity of Automake-using projects.

without object-shortname
  bin_PROGRAMS += %D%/foo
  %C%_foo_CFLAGS = $(AM_CFLAGS) -g

results in objects:

with object-shortname the object file name is:

And it allows the following in $(top_srcdir)/ (not possible with

  include sub/

Hi Thomas,

Thanks for the addition.

I've only spent a few minutes reading discussion about this patch and
even less looking at the actual code, but so far, I have seen no
addition to the test suite. I suggest you copy an existing test as a
starting point, add something like the above in its
section, and then ensure that the new artifacts appear in the

You are absolutely right. I added a test case. I hope this is alright?

Hello Jim and other folks,

This is a friendly reminder. I've added a test suite to the patch. Please review.

Thank you and best regards,
Thomas Martitz


please review my updated patch set.

Thank you and best regards,
Thomas Martitz

reply via email to

[Prev in Thread] Current Thread [Next in Thread]