automake
[Top][All Lists]
Advanced

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

Re: AM_CONDITIONAL


From: Jens Krüger
Subject: Re: AM_CONDITIONAL
Date: Wed, 26 Sep 2001 08:09:07 +0200

Hi, Hari

Am Montag, 24. September 2001 17:08 schrieben Sie:
> [snip]
>
> You'll have to rewrite your configure script to generate all
> directories _even_ if not all the features are used.
>
> Automake tries to ensure that 'make dist' enters all directories and
> copies all the files.  The generated package can later be configured
> with different settings, after all.  So, all the directories and
> Makefiles should exist, even if they're never invoked during some
> builds.

I had a look at the tar.gz file and I found all files needed for the
distribution. I took this tarball, untar it, run configure with all possible
options and packages and it works fine.

My problem was and is that the make distcheck doesn't work. I have no
possibility to run the configure script during make distcheck with any
 option.

In my opinion the reason is based on the 'make dist' call during make
distcheck.

distcheck: dist
        -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
        GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
        chmod -R a-w $(distdir); chmod a+w $(distdir)
        mkdir $(distdir)/=build
        mkdir $(distdir)/=inst
        chmod a-w $(distdir)
        dc_install_base=`CDPATH=: && cd $(distdir)/=inst && pwd` \
          && $(MAKE) $(AM_MAKEFLAGS) distcheck-hook \
          && cd $(distdir)/=build \
          && ../configure --srcdir=.. --prefix=$$dc_install_base \
          && $(MAKE) $(AM_MAKEFLAGS) \
          && $(MAKE) $(AM_MAKEFLAGS) dvi \
          && $(MAKE) $(AM_MAKEFLAGS) check \
          && $(MAKE) $(AM_MAKEFLAGS) install \
          && $(MAKE) $(AM_MAKEFLAGS) installcheck \
          && $(MAKE) $(AM_MAKEFLAGS) uninstall \
          && (test `find $$dc_install_base -type f -print | wc -l` -le 1 \

             || (echo "Error: files left after uninstall" 1>&2; \

                 exit 1) ) \
          && $(MAKE) $(AM_MAKEFLAGS) dist \
          && $(MAKE) $(AM_MAKEFLAGS) distclean \
          && rm -f $(distdir).tar.gz \
          && (test `find . -type f -print | wc -l` -eq 0 \

             || (echo "Error: files left after distclean" 1>&2; \

                 exit 1) )
        -chmod -R a+w $(distdir) > /dev/null 2>&1; rm -rf $(distdir)
        @echo "$(distdir).tar.gz is ready for distribution" | \
          sed 'h;s/./=/g;p;x;p;x'
check-am: all-am
check: check-recursive

For me is there no reason to 'make dist' during 'make distcheck' or may you
give me one?

> - Hari

Regards

Jens

--

Jens Krüger

Technische Universität München
ZBE FRM-II
Lichtenberg-Str. 1
D-85747 Garching

Tel: + 49 89 289 14 716
Fax: + 49 89 289 14 666
mailto:address@hidden
http://www.frm2.tu-muenchen.de



reply via email to

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