GNU bug report logs -
#13002
directory variables in VALAFLAGS are expanded after cd
Previous Next
Reported by: Daiki Ueno <ueno <at> unixuser.org>
Date: Mon, 26 Nov 2012 11:06:02 UTC
Severity: normal
Done: Karl Berry <karl <at> freefriends.org>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
Hi,
I see quite a few Vala projects setting VALAFLAGS as follows:
libfolks_eds_la_VALAFLAGS = \
--vapidir=. \
--vapidir=$(top_srcdir)/folks \
...
This is referred by the generated rule in Makefile.in as:
$(AM_V_VALAC)$(am__cd) $(srcdir) && $(VALAC) $(libfolks_eds_la_VALAFLAGS) $(VALAFLAGS) -C $(libfolks_eds_la_SOURCES)
Here, if $(srcdir) != $(builddir) and $(top_srcdir) is a relative path
from $(builddir), the --vapidir option will point to a wrong location.
Though this could be worked around by using $(abs_top_srcdir) instead of
$(top_srcdir), it looks to me a bit unintuitive. It would be nice that
automake handles this case nicely.
Regards,
--
Daiki Ueno
This bug report was last modified 4 years and 196 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.