Holger Freyther holger@freyther.de writes:
On 17 May 2015, at 19:29, Andreas Rottmann mail@rotty.xx.vu wrote:
Holger Freyther holger@freyther.de writes:
make[1]: Entering directory '/home/.big/rotty/src/_readonly/libosmo-abis/_build/libosmo-abis-0.3.1.2-3a58/_build' echo 0.3.1.2-3a58 > ../.version-t && mv ../.version-t ../.version /bin/bash: ../.version-t: Permission denied Makefile:879: recipe for target '../.version’ failed
BUILT_SOURCES = $(top_srcdir)/.version $(top_srcdir)/.version: echo $(VERSION) > $@-t && mv $@-t $@
I assume the dir name implies that it is really ro, So what would it take to to not generate this in the “srcdir” at all?
No, this is misleading; I use the _readonly directory for stuff I don't intend to touch (much). However, automake makes the unpacked tarball (containing $(top_srcdir), obviously) readonly during "make distcheck".
Regarding generating ".version" into the build dir: the way I fixed things is the way is consistent with the recipe in git-version-gen (implied in the text of the git-version-gen revision in libosmo-abis, explicit in newer versions).
Regards, Rotty