automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Problem adding includes files in the tarball when they are in a diff


From: Alexandre Duret-Lutz
Subject: Re: Problem adding includes files in the tarball when they are in a different directory
Date: Wed, 05 Nov 2003 23:39:39 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

>>> "Lapo" == Lapo Pasqui <address@hidden> writes:

[...]

 Lapo> The problem I have with this 'design' is that I cannot find a way to
 Lapo> include these 'include files' in the tarball I obtain using

 Lapo>   make dist

 Lapo> I've tried adding something similar to the src/Makefile.am
 Lapo> EXTRA_foo_a_SOURCES = ../inc/filename.h

 Lapo> but, as expected, the '../' path is not something automake likes.
 Lapo> I'm using automake 1.6.3 and autoconf 2.57.

It works for me.

~/tmp % cat configure.ac
AC_INIT(a,1)
AC_PROG_CC
AC_PROG_RANLIB
AM_INIT_AUTOMAKE([foreign])
AC_CONFIG_FILES([Makefile sub/Makefile])
AC_OUTPUT
~/tmp % cat Makefile.am
SUBDIRS = sub
~/tmp % cat sub/Makefile.am
lib_LIBRARIES = libfoo.a
libfoo_a_SOURCES =
EXTRA_libfoo_a_SOURCES = ../inc/foo.c
~/tmp % aclocal-1.6
~/tmp % autoconf
~/tmp % automake-1.6 -a
configure.ac: installing `./install-sh'
configure.ac: installing `./mkinstalldirs'
configure.ac: installing `./missing'
sub/Makefile.am: installing `./depcomp'
~/tmp % ./configure -q
Making all in sub
make[1]: Entering directory `/home/adl/tmp/sub'
rm -f libfoo.a
ar cru libfoo.a  
ranlib libfoo.a
make[1]: Leaving directory `/home/adl/tmp/sub'
make[1]: Entering directory `/home/adl/tmp'
make[1]: Nothing to be done for `all-am'.
make[1]: Leaving directory `/home/adl/tmp'
~/tmp % make dist
cd . && /bin/sh ./config.status Makefile 
config.status: creating Makefile
{ test ! -d a-1 || { find a-1 -type d ! -perm -200 -exec chmod u+w {} ';' && rm 
-fr a-1; }; }
mkdir a-1
list='sub'; for subdir in $list; do \
  if test "$subdir" = .; then :; else \
    test -d a-1/$subdir \
    || mkdir a-1/$subdir \
    || exit 1; \
    (cd $subdir && \
      make  \
        top_distdir="." \
        distdir=../a-1/$subdir \
        distdir) \
      || exit 1; \
  fi; \
done
make[1]: Entering directory `/home/adl/tmp/sub'
cd .. && /bin/sh ./config.status sub/Makefile depfiles
config.status: creating sub/Makefile
config.status: executing depfiles commands
make[1]: Leaving directory `/home/adl/tmp/sub'
make[1]: Entering directory `/home/adl/tmp/sub'
mkdir -p -- ../a-1/sub/../inc
make[1]: Leaving directory `/home/adl/tmp/sub'
find a-1 -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  ! -type d ! -perm -444 -exec /bin/sh /home/adl/tmp/install-sh -c -m a+r {} {} 
\; \
|| chmod -R a+r a-1
/bin/sh /home/adl/tmp/missing --run tar chof - a-1 | GZIP=--best gzip -c 
>a-1.tar.gz
{ test ! -d a-1 || { find a-1 -type d ! -perm -200 -exec chmod u+w {} ';' && rm 
-fr a-1; }; }
~/tmp % tar zxvf a-1.tar.gz
a-1/                 
a-1/Makefile.am
a-1/Makefile.in
a-1/aclocal.m4
a-1/configure
a-1/configure.ac
a-1/depcomp
a-1/install-sh
a-1/missing
a-1/mkinstalldirs
a-1/sub/
a-1/sub/Makefile.am
a-1/sub/Makefile.in
a-1/inc/
a-1/inc/foo.c
~/tmp %

-- 
Alexandre Duret-Lutz





reply via email to

[Prev in Thread] Current Thread [Next in Thread]