1 ## automake - create Makefile.in from Makefile.am
2 ## Copyright (C) 1994, 1995, 1996, 1999 Free Software Foundation, Inc.
4 ## This program is free software; you can redistribute it and/or modify
5 ## it under the terms of the GNU General Public License as published by
6 ## the Free Software Foundation; either version 2, or (at your option)
9 ## This program is distributed in the hope that it will be useful,
10 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
11 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 ## GNU General Public License for more details.
14 ## You should have received a copy of the GNU General Public License
15 ## along with this program; if not, write to the Free Software
16 ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
18 # This target untars the dist file and tries a VPATH configuration. Then
19 # it guarantees that the distribution is self-contained by making another
23 GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(AMTAR) xf -
24 mkdir $(distdir)/=build
25 mkdir $(distdir)/=inst
26 dc_install_base=`cd $(distdir)/=inst && pwd` \
27 DISTHOOK $(MAKE) $(AM_MAKEFLAGS) distcheck-hook \
28 && cd $(distdir)/=build \
29 && ../configure --srcdir=.. --prefix=$$dc_install_base \
30 GETTEXT --with-included-gettext \
31 && $(MAKE) $(AM_MAKEFLAGS) \
32 && $(MAKE) $(AM_MAKEFLAGS) dvi \
33 && $(MAKE) $(AM_MAKEFLAGS) check \
34 && $(MAKE) $(AM_MAKEFLAGS) install \
35 && $(MAKE) $(AM_MAKEFLAGS) installcheck \
36 && $(MAKE) $(AM_MAKEFLAGS) uninstall \
37 ## We use -le 1 because the `dir' file might still exist after uninstall.
38 && test `find $$dc_install_base -type f -print | wc -l` -le 1 \
39 && $(MAKE) $(AM_MAKEFLAGS) dist \
40 && $(MAKE) $(AM_MAKEFLAGS) distclean \
41 && test `find . -type f -print | wc -l` -eq 0
43 @banner="$(distdir).tar.gz is ready for distribution"; \
44 dashes=`echo "$$banner" | sed s/./=/g`; \