[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
distclean-recursive broken?
From: |
Ralf Corsepius |
Subject: |
distclean-recursive broken? |
Date: |
Fri, 13 Feb 2004 12:37:27 +0100 |
Hi,
I think distclean-recursive is broken:
automake-1.8.2 currently generates this rule for distclean-recursive:
...
mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive:
@set fnord $$MAKEFLAGS; amf=$$2; \
dot_seen=no; \
case "$@" in \
distclean-* | maintainer-clean-*) list='$(DIST_SUBDIRS)' ;; \
*) list='$(SUBDIRS)' ;; \
esac; \
rev=''; for subdir in $$list; do \
if test "$$subdir" = "."; then :; else \
rev="$$subdir $$rev"; \
...
I.e. "make distclean" recurses into DIST_SUBDIRS.
This breaks "make distcheck" for Makefile.ams where
SUBDIRS != DIST_SUBDIRS,
because "make distcheck" first recurses into SUBDIRS and afterwards runs
"make distclean" in DIST_SUBDIRS.
IMO, distclean-recursive should always recurse into SUBDIRS.
Background: I my toplevel Makefile.am, I am setting up SUBDIRS by
autoconf substitutions, separately set up DIST_DISTS statically to
handle a subset of subdirectories and let dist-hook handle those
directories which can not be put into DIST_SUBDIRS.
I.e. the Makefile.am looks similar to this:
SUBDIRS = sub1 @moresubdirs@
DIST_SUBDIRS = sub1
dist-hook:
cp -pR $(srcdir)/sub2 $(distdir)/sub2
cp -pR $(srcdir)/sub3 $(distdir)/sub3
Ralf
- distclean-recursive broken?,
Ralf Corsepius <=
- Re: distclean-recursive broken?, Alexandre Duret-Lutz, 2004/02/15
- Re: distclean-recursive broken?, Ralf Corsepius, 2004/02/15
- Re: distclean-recursive broken?, Alexandre Duret-Lutz, 2004/02/15
- Re: distclean-recursive broken?, Ralf Corsepius, 2004/02/15
- Re: distclean-recursive broken?, Alexandre Duret-Lutz, 2004/02/16
- Re: distclean-recursive broken?, Ralf Corsepius, 2004/02/16
- Re: distclean-recursive broken?, Alexandre Duret-Lutz, 2004/02/16