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: Can this be automade?


> I'm working on a project that has a lot of components that all reside
> in their own directory. Before i can make them i need to run a script
> to set up a bunch of links...

I may've misunderstood your problem, so forgive me if this 'obvious'
response doesn't apply to your case.  It seems like you should be able
to do just about anything you need to using AC_CONFIG_LINKS and some
shell code in your configure.ac file.  For example, you can do things
like:

dnl Get canonical host name into $host
AC_CANONICAL_HOST

dnl Set the arch prefix based on the host
case $host in
*-*-*qnx*)
  arch=qnx
  ;;
*-*-*irix*)
  arch=irix
  ;;
#(etc, etc.)
esac

AC_CONFIG_LINKS(machine.c:${arch}/machine.c
                machine.h:${arch}/machine.h)

See:
http://www.gnu.org/software/autoconf/manual/autoconf-2.57/html_mono/autoconf.html#SEC32

for more details...

HTH,

- Dave






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