Reputation: 9342
Is it possible to setup automake to install a file under a different name? For instance, let's say I have a LICENSE file in my package, which I want to be installed under /usr/share/licenses/mypackage. Is it possible to extend the code below, so that the LICENSE file is installed as "mypackage"?
licensedir = $(datadir)/licenses
license_DATA = LICENSE
I've been googling on this for quite some time now, but didn't find anything useful.
Upvotes: 2
Views: 886
Reputation: 57870
A possible solution is to add an install hook:
install-data-hook:
cd $(DESTDIR)$(datadir)/licenses; \
mv LICENSE mypackage
Upvotes: 4