From: Alexandre Duret-Lutz Date: Wed, 7 Nov 2001 08:03:53 +0000 (+0000) Subject: * lib/am/distdir.am (am__remove_distdir): Define in topdir only. X-Git-Tag: Release-1-5b~38 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6879a6cf21a7580673419f5bc91fac764d3c74a2;p=thirdparty%2Fautomake.git * lib/am/distdir.am (am__remove_distdir): Define in topdir only. --- diff --git a/ChangeLog b/ChangeLog index 2950263fe..b684dbb0f 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2001-11-07 Alexandre Duret-Lutz + + * lib/am/distdir.am (am__remove_distdir): Define in topdir only. + 2001-11-05 Paul Eggert * lib/am/distdir.am (am__remove_distdir): diff --git a/lib/am/distdir.am b/lib/am/distdir.am index 1795628d2..e519df2e4 100644 --- a/lib/am/distdir.am +++ b/lib/am/distdir.am @@ -16,24 +16,25 @@ ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. -.PHONY: distdir - ## DIST_COMMON comes first so that README can be the very first file. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST) top_distdir = %TOP_DISTDIR% if %?TOPDIR_P% -# Avoid unsightly `./'. +## Avoid unsightly `./'. ?DISTDIR?distdir = $(PACKAGE)-$(VERSION) else !%?TOPDIR_P% ?DISTDIR?distdir = $(top_distdir)/$(PACKAGE)-$(VERSION) endif !%?TOPDIR_P% +if %?TOPDIR_P% am__remove_distdir = \ { test ! -d $(distdir) \ || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \ && rm -fr $(distdir); }; } +endif %?TOPDIR_P% +.PHONY: distdir distdir: $(DISTFILES) ## ## For Gnits users, this is pretty handy. Look at 15 lines