On 06/03/2017 04:08 AM, Peter Johansson wrote:
>
> I don't know how to do this "automakially", but I would modify the
> rule above to
>
> install-data-local: file.info
>     ${INSTALL_DATA} file.info $(DESTDIR)${infodir}
>
> where I 1) use INSTALL_DATA which default sets permission -m 644 and
> 2) use DESTDIR variable to allow for staged installation
> (https://www.gnu.org/software/automake/manual/html_node/DESTDIR.html#DESTDIR)
>
> I think 'make distcheck' at least is checking that 2) works, so I
> suspect 'distcheck fails' with your current rule.
>
> Cheers,
> Peter
>
Hi Peter,

  Yes make distcheck is in fact failing (even with your modification).
The error is:

/bin/install -c -m 644 file.info
/data/palken/package/package-1.0+/_inst/share/info
/bin/install: cannot stat ‘file.info’: No such file or directory

The file.info is being included with the dist archive because of the
EXTRA_DIST, however it is not being located for the installation.

Do I need to also prefix the "file.info" in that install-data-local rule
with some directory variable?

Thanks,

Patrick


Reply via email to