automake
[Top][All Lists]
Advanced

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

Re: What cures a failure to make distdir?


From: Gavin Smith
Subject: Re: What cures a failure to make distdir?
Date: Mon, 18 May 2015 16:05:49 +0100

On 18 May 2015 at 15:39, Arthur Schwarz <address@hidden> wrote:
> I've just tried to create and test my test case and received the message
> below. The script which is used to create the distribution is included along
> with the configure.ac, Makefile.am, and src/Makkefile.am files. The setup is
> for testing and not too large (130 lines - see below).
>
> What awful thing have I done to not be able to build distdir? Shouldn't this
> be part of the magic glue that holds the autotools together, which the
> autotools create all by themselves?

> ========================== buildscript output ==========================
>
> if test -d "test-0.5"; then find "test-0.5" -type d ! -perm -200 -exec chmod
> u+w {} ';' && rm -rf "test-0.5" || { sleep 5 && rm -rf "test-0.5"; }; else
> :; fi
> test -d "test-0.5" || mkdir "test-0.5"
>  (cd src && make  top_distdir=../test-0.5 distdir=../test-0.5/src \
>      am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=:
> distdir)
> make[1]: Entering directory
> '/cygdrive/e/home/skidmarks/Projects/Test/automake/dist/src'
> make[1]: *** No rule to make target 'distdir'.  Stop.
> make[1]: Leaving directory
> '/cygdrive/e/home/skidmarks/Projects/Test/automake/dist/src'
> Makefile:515: recipe for target 'distdir' failed
> make: *** [distdir] Error 1
> tar: test-0.5.tar.xz: Cannot open: No such file or directory
> tar: Error is not recoverable: exiting now
>
> ===================== Chaos comes from maintenance =====================

Hi Arthur,

I had to fiddle about a bit with ./buildscript.sh for it to build on
my system, here's what I ended up with:

#!/bin/bash
# cd ~/Projects/Test/automake/dist/ &&
 autoreconf --install       &&  \
 ./configure &&
 make dist-xz     && \
 cp test-0.5.tar.xz ../installDir/ && \
 cd ../installDir && \
 rm -rf test-0.5/;
 tar xfa test-0.5.tar.xz && \
 cd test-0.5/     && \
 ./configure --prefix=`pwd`/.. && make && make install && make check

I also had to "touch README".

It seemed to run the test suite fine. I don't know what was going on
on your system.

Full output of "./buildscript.sh" attached.

Attachment: output
Description: Binary data


reply via email to

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