Hi Ralf,

> Can you please tell me how to reproduce that hell in libgettextpo?

You reproduced it already pretty well.

> +# Ensure objects in ../src are renamed so they don't conflict with
> +# the objects generated from ../src/Makefile.
> +libgettextpo_la_CPPFLAGS = $(AM_CPPFLAGS)

Wow. What a hack! Even with the comments, I could not understand how
changing CPPFLAGS could have an effect on object files.

> I tried the patch below, and so far it seems to work reasonably well.
> You lose the ability to do 'make clean' in either of
> gettext-tools/libgettextpo and gettext-tools/src without also cleaning
> the other, ..., but that's about it.

"That's about it." ;-)

Thank you for spending time on experiments how to make libgettextpo work
"reasonably well" with 'subdir-objects'. But, frankly, IMO the effort
should go in the opposite direction:
  - How to continue to offer 'subdir-objects' as a choice that remains
    entirely an unconstrained choice.
  - How to use Automake conditionals or AC_SUBSTed variables without
    file names as replacement for AC_LIBOBJ.

I will work on the latter topic, for gnulib, in the next few days.

Bruno

Reply via email to