How to send a message using GNU Automake?

I want to configure symbolic links and add some lines to the system configuration files, I think I should perform these tasks in some cases after installation.

Makefile.am: 

bin_SCRIPTS = a a1

a1: 
    ln -snf a a1

This works, but it copies ato a1in bindir, and a1is created as a symbolic link in the assembly directory.

I also want to change some system configuration files, and not replace them, for example, something like

post-install: 
    grep -q [magic-word] /etc/somefile || echo more-config... >>/etc/somefile

But I do not know how to do this.

+3
source share
1 answer

I found these targets:

  • set-exec-hook
  • set-data-hook

in the Automake Guide .

+1
source

Source: https://habr.com/ru/post/1760722/


All Articles