automake
[Top][All Lists]
Advanced

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

Makefile.static in EXTRA_DIST vanishes on make distcheck


From: Holger Hans Peter Freyther
Subject: Makefile.static in EXTRA_DIST vanishes on make distcheck
Date: Thu, 10 Nov 2011 09:14:21 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.23) Gecko/20111010 Iceowl/1.0b2 Icedove/3.1.15

Hi,

the project I am working on invokes another Makefile (to build a Linux kernel
module), I have placed this Makefile in the EXTRA_DIST but somehow on make
distcheck the Makefile.static is gone and the cleaning fails. I have created a
minimal example and attached it to this email.

Makefile.am:
EXTRA_DIST = Makefile.static

clean-local::
        $(MAKE) -f Makefile.static clean


The complete output:

address@hidden:~/source/gnu/test-1.0$ make distcheck
{ test ! -d "test-1.0" || { find "test-1.0" -type d ! -perm -200 -exec chmod
u+w {} ';' && rm -fr "test-1.0"; }; }
test -d "test-1.0" || mkdir "test-1.0"
test -n "" \
        || find "test-1.0" -type d ! -perm -755 \
                -exec chmod u+rwx,go+rx {} \; -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/bash
/home/ich/source/gnu/test-1.0/install-sh -c -m a+r {} {} \; \
        || chmod -R a+r "test-1.0"
tardir=test-1.0 && /bin/bash /home/ich/source/gnu/test-1.0/missing --run tar
chof - "$tardir" | GZIP=--best gzip -c >test-1.0.tar.gz
{ test ! -d "test-1.0" || { find "test-1.0" -type d ! -perm -200 -exec chmod
u+w {} ';' && rm -fr "test-1.0"; }; }
case 'test-1.0.tar.gz' in \
        *.tar.gz*) \
          GZIP=--best gzip -dc test-1.0.tar.gz | /bin/bash
/home/ich/source/gnu/test-1.0/missing --run tar xf - ;;\
        *.tar.bz2*) \
          bzip2 -dc test-1.0.tar.bz2 | /bin/bash
/home/ich/source/gnu/test-1.0/missing --run tar xf - ;;\
        *.tar.lzma*) \
          lzma -dc test-1.0.tar.lzma | /bin/bash
/home/ich/source/gnu/test-1.0/missing --run tar xf - ;;\
        *.tar.xz*) \
          xz -dc test-1.0.tar.xz | /bin/bash 
/home/ich/source/gnu/test-1.0/missing
--run tar xf - ;;\
        *.tar.Z*) \
          uncompress -c test-1.0.tar.Z | /bin/bash
/home/ich/source/gnu/test-1.0/missing --run tar xf - ;;\
        *.shar.gz*) \
          GZIP=--best gzip -dc test-1.0.shar.gz | unshar ;;\
        *.zip*) \
          unzip test-1.0.zip ;;\
        esac
chmod -R a-w test-1.0; chmod a+w test-1.0
mkdir test-1.0/_build
mkdir test-1.0/_inst
chmod a-w test-1.0
test -d test-1.0/_build || exit 0; \
        dc_install_base=`CDPATH="${ZSH_VERSION+.}:" && cd test-1.0/_inst && pwd 
| sed
-e 's,^[^:\\/]:[\\/],/,'` \
          && dc_destdir="${TMPDIR-/tmp}/am-dc-$$/" \
          && am__cwd=`pwd` \
          && CDPATH="${ZSH_VERSION+.}:" && cd test-1.0/_build \
          && ../configure --srcdir=.. --prefix="$dc_install_base" \
             \
          && make  \
          && make  dvi \
          && make  check \
          && make  install \
          && make  installcheck \
          && make  uninstall \
          && make  distuninstallcheck_dir="$dc_install_base" \
                distuninstallcheck \
          && chmod -R a-w "$dc_install_base" \
          && ({ \
               (cd ../.. && umask 077 && mkdir "$dc_destdir") \
               && make  DESTDIR="$dc_destdir" install \
               && make  DESTDIR="$dc_destdir" uninstall \
               && make  DESTDIR="$dc_destdir" \
                    distuninstallcheck_dir="$dc_destdir" distuninstallcheck; \
              } || { rm -rf "$dc_destdir"; exit 1; }) \
          && rm -rf "$dc_destdir" \
          && make  dist \
          && rm -rf test-1.0.tar.gz \
          && make  distcleancheck \
          && cd "$am__cwd" \
          || exit 1
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
configure: creating ./config.status
config.status: creating Makefile
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Nothing to be done for `dvi'.
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Nothing to be done for `check'.
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[2]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Nothing to be done for `installcheck'.
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Nothing to be done for `uninstall'.
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[2]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[2]: Nothing to be done for `install-exec-am'.
make[2]: Nothing to be done for `install-data-am'.
make[2]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Nothing to be done for `uninstall'.
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
{ test ! -d "test-1.0" || { find "test-1.0" -type d ! -perm -200 -exec chmod
u+w {} ';' && rm -fr "test-1.0"; }; }
test -d "test-1.0" || mkdir "test-1.0"
test -n "" \
        || find "test-1.0" -type d ! -perm -755 \
                -exec chmod u+rwx,go+rx {} \; -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/bash
/home/ich/source/gnu/test-1.0/test-1.0/install-sh -c -m a+r {} {} \; \
        || chmod -R a+r "test-1.0"
tardir=test-1.0 && /bin/bash /home/ich/source/gnu/test-1.0/test-1.0/missing
--run tar chof - "$tardir" | GZIP=--best gzip -c >test-1.0.tar.gz
{ test ! -d "test-1.0" || { find "test-1.0" -type d ! -perm -200 -exec chmod
u+w {} ';' && rm -fr "test-1.0"; }; }
make[1]: Leaving directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[1]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make -f Makefile.static clean
make[2]: Entering directory `/home/ich/source/gnu/test-1.0/test-1.0/_build'
make[2]: Makefile.static: No such file or directory



So somehow the clean fails because the Makefile.static is already gone? how
can I prevent that? Or which rules should I use to clean the tree?

Attachment: test-1.0.tar.gz
Description: GNU Zip compressed data


reply via email to

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