Re: make install-dirPRIMARY
On 2014-08-12 fr33domlover fr33domlo...@riseup.net wrote: Hello, I'm writing a Makefile.am with a custom piece for building, distributing and installing Doxygen-generated documentation. All the generated files are used as values for the special-scheme variables, e.g. 'dist_reference_DATA = index.html'. Installation targets are automatically generated, but aren't very pretty. For example, 'dist_reference_DATA' generates target 'install-referenceDATA'. This is relatively readable, but when the destination directory part gets longer, e.g. reference_full_html, it becomes somewhat less pretty, certainly less than the elegant 'install-info', 'install-html' and so on. So I had an idea - define my own pretty targets like `install-ref`, `install-ref-html` etc., and make then directly depend on those less pretty targets Automake generates. The question is, is the naming scheme of those generated targets more or less consistent? Is it safe to rely on it to not change often? If not, what other options do I have? I wouldn't want to write manual install targets copied from Makefile, since that would be dangerous duplication. -- fr33 Anyone has some advice? My code uses those targets at the moment, but I'm not sure it's good for long term. signature.asc Description: PGP signature
Re: make install-dirPRIMARY
On 08/18/2014 03:07 AM, fr33domlover wrote: Anyone has some advice? My code uses those targets at the moment, but I'm not sure it's good for long term. Not sure I understand your problem, but have you read the 'Extending' section in the manual http://www.gnu.org/software/automake/manual/automake.html#Extending Cheers, -- Peter Johansson
make install-dirPRIMARY
Hello, I'm writing a Makefile.am with a custom piece for building, distributing and installing Doxygen-generated documentation. All the generated files are used as values for the special-scheme variables, e.g. 'dist_reference_DATA = index.html'. Installation targets are automatically generated, but aren't very pretty. For example, 'dist_reference_DATA' generates target 'install-referenceDATA'. This is relatively readable, but when the destination directory part gets longer, e.g. reference_full_html, it becomes somewhat less pretty, certainly less than the elegant 'install-info', 'install-html' and so on. So I had an idea - define my own pretty targets like `install-ref`, `install-ref-html` etc., and make then directly depend on those less pretty targets Automake generates. The question is, is the naming scheme of those generated targets more or less consistent? Is it safe to rely on it to not change often? If not, what other options do I have? I wouldn't want to write manual install targets copied from Makefile, since that would be dangerous duplication. -- fr33 signature.asc Description: PGP signature