distdir.
+2001-05-08 Akim Demaille <akim@epita.fr>
+
+ * distdir.am (dist-all): Build all the flavors using a single
+ distdir.
+
2001-05-08 Akim Demaille <akim@epita.fr>
* automake.in (&file_contents_internal): Apply the @cond_stack to
## Process this file with automake to create Makefile.in
-AUTOMAKE_OPTIONS = gnits 1.4
+AUTOMAKE_OPTIONS = gnits 1.4 dist-bzip2
MAINT_CHARSET = latin1
## We need `.' in SUBDIRS because we want `check' to build `.' before
_am_quote = @_am_quote@
install_sh = @install_sh@
-AUTOMAKE_OPTIONS = gnits 1.4
+AUTOMAKE_OPTIONS = gnits 1.4 dist-bzip2
MAINT_CHARSET = latin1
SUBDIRS = . m4 lib tests
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
+dist-bzip2: distdir
+ $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
+ -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
+
# This target untars the dist file and tries a VPATH configuration. Then
# it guarantees that the distribution is self-contained by making another
# tarfile.
clean-am: clean-generic mostlyclean-am
-dist-all: dist
-
+dist-all: distdir
+ $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+ $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
+ -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
distclean: distclean-recursive
-rm -f config.status
distclean-am: clean-am distclean-generic distclean-tags
uninstall-info: uninstall-info-recursive
.PHONY: $(RECURSIVE_TARGETS) all all-am check check-am clean \
- clean-generic clean-recursive dist dist-all dist-info distcheck \
- distclean distclean-generic distclean-recursive distclean-tags \
- distdir dvi dvi-am dvi-recursive info info-am info-recursive \
- install install-am install-binSCRIPTS install-data \
- install-data-am install-data-recursive install-dist_amDATA \
+ clean-generic clean-recursive dist dist-all dist-bzip2 \
+ dist-info distcheck distclean distclean-generic \
+ distclean-recursive distclean-tags distdir dvi dvi-am \
+ dvi-recursive info info-am info-recursive install install-am \
+ install-binSCRIPTS install-data install-data-am \
+ install-data-recursive install-dist_amDATA \
install-dist_pkgdataDATA install-dist_scriptDATA install-exec \
install-exec-am install-exec-recursive install-info \
install-info-recursive install-man install-recursive \
New in 1.4e:
* Support for `configure.ac'.
* Support for `else COND', `endif COND' and negated conditions `!COND'.
+* `make dist-all' is much faster.
New in 1.4b:
* Faster AM_INIT_AUTOMAKE (requires update of `missing' script)
if %?TOPDIR_P%
GZIP_ENV = --best
-.PHONY: dist-all dist
-dist-all: dist
+.PHONY: dist
dist: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
if %?BZIP2%
-.PHONY dist-all: dist-bzip2
+.PHONY: dist-bzip2
dist-bzip2: distdir
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
if %?COMPRESS%
-.PHONY dist-all: dist-tarZ
+.PHONY: dist-tarZ
dist-tarZ: distdir
$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
if %?SHAR%
-.PHONY dist-all: dist-shar
+.PHONY: dist-shar
dist-shar: distdir
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
if %?ZIP%
-.PHONY dist-all: dist-zip
+.PHONY: dist-zip
dist-zip: distdir
-rm -f $(distdir).zip
zip -rq $(distdir).zip $(distdir)
endif %?TOPDIR_P%
+
+## ------------------------------------------------- ##
+## Building all the requested distribution flavors. ##
+## ------------------------------------------------- ##
+
+## Currently we cannot use if/endif inside a rule. The file_contents
+## parser needs work.
+
+if %?TOPDIR_P%
+
+.PHONY: dist-all
+dist-all: distdir
+ $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+?BZIP2? $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
+?COMPRESS? $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
+?SHAR? shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+?ZIP? -rm -f $(distdir).zip
+?ZIP? zip -rq $(distdir).zip $(distdir)
+ -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
+
+endif %?TOPDIR_P%
+
+
## ------------------------- ##
## Checking a distribution. ##
## ------------------------- ##
## Process this file with automake to create Makefile.in
-AUTOMAKE_OPTIONS = gnits 1.4
+AUTOMAKE_OPTIONS = gnits 1.4 dist-bzip2
MAINT_CHARSET = latin1
## We need `.' in SUBDIRS because we want `check' to build `.' before
if %?TOPDIR_P%
GZIP_ENV = --best
-.PHONY: dist-all dist
-dist-all: dist
+.PHONY: dist
dist: distdir
$(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
if %?BZIP2%
-.PHONY dist-all: dist-bzip2
+.PHONY: dist-bzip2
dist-bzip2: distdir
$(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
if %?COMPRESS%
-.PHONY dist-all: dist-tarZ
+.PHONY: dist-tarZ
dist-tarZ: distdir
$(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
if %?SHAR%
-.PHONY dist-all: dist-shar
+.PHONY: dist-shar
dist-shar: distdir
shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
-chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
if %?ZIP%
-.PHONY dist-all: dist-zip
+.PHONY: dist-zip
dist-zip: distdir
-rm -f $(distdir).zip
zip -rq $(distdir).zip $(distdir)
endif %?TOPDIR_P%
+
+## ------------------------------------------------- ##
+## Building all the requested distribution flavors. ##
+## ------------------------------------------------- ##
+
+## Currently we cannot use if/endif inside a rule. The file_contents
+## parser needs work.
+
+if %?TOPDIR_P%
+
+.PHONY: dist-all
+dist-all: distdir
+ $(AMTAR) chof - $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
+?BZIP2? $(AMTAR) chof - $(distdir) | bzip2 -9 -c >$(distdir).tar.bz2
+?COMPRESS? $(AMTAR) chof - $(distdir) | compress -c >$(distdir).tar.Z
+?SHAR? shar $(distdir) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).shar.gz
+?ZIP? -rm -f $(distdir).zip
+?ZIP? zip -rq $(distdir).zip $(distdir)
+ -chmod -R a+w $(distdir) >/dev/null 2>&1; rm -rf $(distdir)
+
+endif %?TOPDIR_P%
+
+
## ------------------------- ##
## Checking a distribution. ##
## ------------------------- ##