This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Python & Automake


>>> "Akim" == Akim Demaille <akim@epita.fr> writes:

[...]

 Akim> import string, sys
 Akim> sys.path.insert(0, '@prefix@/share/@PACKAGE@')

 Akim> package = '@PACKAGE@'
 Akim> version = '@VERSION@'
 Akim> prefix = '@prefix@'
 Akim> datadir = string.replace('@datadir@', '${prefix}', prefix)
 Akim> pkgdatadir = string.replace('@pkgdatadir@', '${datadir}', datadir)

 Akim> import libit
 Akim> apply(libit.main, tuple(sys.argv[1:]))
 Akim> ----------------------------------------

 Akim> Aside from the needed update for the Makefile.am
 Akim> machinery, is the top level generation and redirection
 Akim> the recommended way?

I'd rather generate the script from Makefile rather than from
config.status, as done for bin/autoconf, bin/autom4te, etc.
Replacing just ${prefix} may not be always enough.  Also I'm not
sure @pkgdatadir@ is available as an AC_SUBST.

I don't know what's best for the rest.
-- 
Alexandre Duret-Lutz




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]