[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: simple distcheck fails
From: |
Jan Engelhardt |
Subject: |
Re: simple distcheck fails |
Date: |
Fri, 28 Nov 2008 14:06:57 +0100 (CET) |
User-agent: |
Alpine 1.10 (LNX 962 2008-03-14) |
Hi Ralf,
On Friday 2008-11-28 06:25, Ralf Wildenhues wrote:
>* Jan Engelhardt wrote on Thu, Nov 27, 2008 at 11:12:24PM CET:
>>
>> ---<8--- Makefile.am
>> AUTOMAKE_OPTIONS = foreign subdir-objects
>> noinst_DATA = foo.txt
>
>> make distcheck
>
>> make[1]: Entering directory `/dev/shm/t/obj/foo-0/_build'
>> make[1]: *** No rule to make target `foo.txt', needed by `all-am'.
>> Stop.
>
>Try using dist_noinst_DATA instead, so that foo.txt is added to the
>tarball.
That works. Now I am hitting the following problem —
`make distcheck` from an obj dir fails, e.g.
14:04 yaguchi:/dev/shm/test > l
total 256
drwxr-xr-x 2 jengelh users 260 Nov 28 14:04 .
drwxrwxrwt 4 root root 80 Nov 28 14:01 ..
-rw-r--r-- 1 jengelh users 65 Nov 28 14:01 Makefile.am
-rw-r--r-- 1 jengelh users 19388 Nov 28 14:03 Makefile.in
-rw-r--r-- 1 jengelh users 32266 Nov 28 14:03 aclocal.m4
-rwxr-xr-x 1 jengelh users 52 Nov 28 14:02 autogen.sh
-rwxr-xr-x 1 jengelh users 130473 Nov 28 14:03 configure
-rw-r--r-- 1 jengelh users 111 Nov 28 14:02 configure.ac
-rwxr-xr-x 1 jengelh users 17867 Nov 28 14:03 depcomp
-rw-r--r-- 1 jengelh users 68 Nov 28 14:04 foo.c
-rw-r--r-- 1 jengelh users 23 Nov 28 14:03 foo.h
-rwxr-xr-x 1 jengelh users 13620 Nov 28 14:03 install-sh
-rwxr-xr-x 1 jengelh users 11135 Nov 28 14:03 missing
14:04 yaguchi:/dev/shm/test > md obj
14:04 yaguchi:/dev/shm/test > cd obj
14:04 yaguchi:../test/obj > ../configure >/dev/null
14:04 yaguchi:../test/obj > make
CC foo.o
CCLD foo
14:04 yaguchi:../test/obj > make distcheck V=2
[...]
make[1]: Entering directory `/dev/shm/test/obj/foo-0/_build'
depbase=`echo foo.o | sed 's|[^/]*$|.deps/&|;s|\.o$||'`;\
gcc -DPACKAGE_NAME=\"foo\" -DPACKAGE_TARNAME=\"foo\"
-DPACKAGE_VERSION=\"0\" -DPACKAGE_STRING=\"foo\ 0\" -DPACKAGE_BUGREPORT=\"\"
-DPACKAGE=\"foo\" -DVERSION=\"0\" -I. -I.. -g -O2 -MT foo.o -MD -MP -MF
-$depbase.Tpo -c -o foo.o ../foo.c &&\
mv -f $depbase.Tpo $depbase.Po
../foo.c:1:17: error: foo.h: No such file or directory
make[1]: *** [foo.o] Error 1
make[1]: Leaving directory `/dev/shm/test/obj/foo-0/_build'
make: *** [distcheck] Error 2
That is because it uses "/dev/shm/test/obj/foo-0/_build/../.." as
$srcdir (which however is the $builddir) instead of
"/dev/shm/test/obj/foo-0/_build/.."
Jan