Where to put helper-scripts with GNU autoconf/automake?

后端 未结 4 1727
我寻月下人不归
我寻月下人不归 2021-01-14 23:11

I\'m working on a project that will be distributed with GNU autoconf/automake, and I have a set of bash scripts which call awk scripts. I would like the bash scripts to end

4条回答
  •  醉梦人生
    2021-01-15 00:05

    Add something like this to Makefile.am

    scriptsdir = $(prefix)/bin
    scripts_DATA = awkscript1 awkscript2
    

    In this case it will install awkscript in $(prefix)/bin (you can also use $(bindir)).

    Note: Dont forget that the first should be named name + dir (scripts -> scriptsdir) and the second should be name + _DATA (scripts -> scripts_DATA).

提交回复
热议问题