]> sourceware.org Git - automake.git/commitdiff
* distdir.am (dist-all): Build all the flavors using a single
authorAkim Demaille <akim@epita.fr>
Tue, 8 May 2001 14:06:36 +0000 (14:06 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 8 May 2001 14:06:36 +0000 (14:06 +0000)
distdir.

ChangeLog
Makefile.am
Makefile.in
NEWS
distdir.am
lib/am/Makefile.am
lib/am/distdir.am

index b131c4ea1b8f48bbde26c5d498a71a9f8dc1957a..27421e14eaa21d5da7c725e0a5636e3290df07c3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+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
index 152646e9b81c2ade09909c3578608d7a8d421177..5e6cc64aa9893e58ca5ccea84f24e6efff813f8c 100644 (file)
@@ -1,6 +1,6 @@
 ## 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
index eb004c38d106a01b07090f91cee8bec14ce212fa..fcc02a7971e0d9c2b0a089fa693c4dbcacc9100f 100644 (file)
@@ -72,7 +72,7 @@ _am_include = @_am_include@
 _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
@@ -473,6 +473,10 @@ 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)
 
+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.
@@ -540,8 +544,10 @@ clean: clean-recursive
 
 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
@@ -604,11 +610,12 @@ uninstall-am: uninstall-binSCRIPTS uninstall-dist_amDATA \
 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 \
diff --git a/NEWS b/NEWS
index 67fb0d70bb95265a390a7efd46fcefc9726dc7da..cbf7eba2771762abf2d4760a2a7c03284fa94fce 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -1,6 +1,7 @@
 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)
index 2f3752151e9027e9a9ca5c88cd3cf31219a8e94e..fe754c1dd10a9fdec0a15d8324b07cff66549a52 100644 (file)
@@ -155,14 +155,13 @@ endif %?TOPDIR_P%
 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)
@@ -170,7 +169,7 @@ endif  %?BZIP2%
 
 
 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)
@@ -178,7 +177,7 @@ endif  %?COMPRESS%
 
 
 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)
@@ -186,7 +185,7 @@ endif  %?SHAR%
 
 
 if  %?ZIP%
-.PHONY dist-all: dist-zip
+.PHONY: dist-zip
 dist-zip: distdir
        -rm -f $(distdir).zip
        zip -rq $(distdir).zip $(distdir)
@@ -196,6 +195,29 @@ endif  %?ZIP%
 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.  ##
 ## ------------------------- ##
index 152646e9b81c2ade09909c3578608d7a8d421177..5e6cc64aa9893e58ca5ccea84f24e6efff813f8c 100644 (file)
@@ -1,6 +1,6 @@
 ## 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
index 2f3752151e9027e9a9ca5c88cd3cf31219a8e94e..fe754c1dd10a9fdec0a15d8324b07cff66549a52 100644 (file)
@@ -155,14 +155,13 @@ endif %?TOPDIR_P%
 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)
@@ -170,7 +169,7 @@ endif  %?BZIP2%
 
 
 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)
@@ -178,7 +177,7 @@ endif  %?COMPRESS%
 
 
 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)
@@ -186,7 +185,7 @@ endif  %?SHAR%
 
 
 if  %?ZIP%
-.PHONY dist-all: dist-zip
+.PHONY: dist-zip
 dist-zip: distdir
        -rm -f $(distdir).zip
        zip -rq $(distdir).zip $(distdir)
@@ -196,6 +195,29 @@ endif  %?ZIP%
 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.  ##
 ## ------------------------- ##
This page took 0.043658 seconds and 5 git commands to generate.