]> git.ipfire.org Git - thirdparty/automake.git/commit
am: make function to canonicalize names
authorStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 24 May 2012 19:14:46 +0000 (21:14 +0200)
committerStefano Lattarini <stefano.lattarini@gmail.com>
Thu, 24 May 2012 23:54:00 +0000 (01:54 +0200)
commitfa806737f8739a248a7ab032e9682d5b738dae90
treedfb1febc4bde7f0848ebddb8afc77de93c6d2e5f
parent4486c689bd6ef4c5c9aa6e7cabe528df499f33b7
am: make function to canonicalize names

We implement a make function that canonicalizes names the same way the
automake script does (with the '&canonicalize' perl function):

    sub/prog      =>  sub_prog
    libx-old.a    =>  libx_old_a
    devel/libx.a  =>  devel_libx_a

This new make function is still unused in our codebase, but it's nice
to have it ther,e ready and tested, should the need for it ever arise.

* lib/am/header-vars.am (am__canon): New function.
(am__bslash, am__comma, am__dollar, am__pound, am__lparen, am__rparen,
am__bquote, am__dquote, am__squote ): New immediate variables, used by
the above function to avoid spurious syntax errors (e.g., $(am__comma)
expands to ',', which would be unusable directly in a make function call).
* t/internals.tap: Extend.

Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
lib/am/header-vars.am
t/internals.tap