From 622e9fa4a8da3837bfcbea1dbf17f367ce8cdd42 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 7 Nov 2001 08:03:52 +0000 Subject: [PATCH] * lib/am/distdir.am (am__remove_distdir): Define in topdir only. --- ChangeLog | 4 ++++ lib/am/distdir.am | 7 ++++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 2950263f..b684dbb0 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 1795628d..e519df2e 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 -- 2.43.5