are called by the clean targets, not the clean-am targets.
Otherwise we have a circular dependency: clean -> clean-am ->
clean-recursive -> clean.
* automake.in (handle_clean): Bind `-local' targets to `-am'
targets, not top targets.
Don't declare -recursive dependencies of the clean targets:
`subdirs.am' did it. Less hard coded knowledge, transfered
into...
* clean.am: here.
+2001-02-06 Akim Demaille <akim@epita.fr>
+
+ * subdirs.am: This file is the exception: clean recursive targets
+ are called by the clean targets, not the clean-am targets.
+ Otherwise we have a circular dependency: clean -> clean-am ->
+ clean-recursive -> clean.
+ * automake.in (handle_clean): Bind `-local' targets to `-am'
+ targets, not top targets.
+ Don't declare -recursive dependencies of the clean targets:
+ `subdirs.am' did it. Less hard coded knowledge, transfered
+ into...
+ * clean.am: here.
+
2001-02-06 Akim Demaille <akim@epita.fr>
Monstro unsplitable patch.
about libtool, and maintainer-clean.
* clean.am, libtool.am: Handle these.
-
+
2001-02-05 Akim Demaille <akim@epita.fr>
* automake.in (handle_texinfo): No longer hard code the clean
-rm -f Makefile.in
clean: clean-recursive
-clean-am: clean-generic clean-recursive mostlyclean-am
+clean-am: clean-generic mostlyclean-am
distclean: distclean-recursive
-rm -f config.status
-distclean-am: clean-am distclean-generic distclean-recursive \
- distclean-tags
+distclean-am: clean-am distclean-generic distclean-tags
maintainer-clean: maintainer-clean-recursive
-rm -f config.status
maintainer-clean-am: distclean-am maintainer-clean-aminfo \
- maintainer-clean-generic maintainer-clean-recursive \
- maintainer-clean-vti
+ maintainer-clean-generic maintainer-clean-vti
mostlyclean: mostlyclean-recursive
-mostlyclean-am: mostlyclean-aminfo mostlyclean-generic \
- mostlyclean-recursive mostlyclean-vti
+mostlyclean-am: mostlyclean-aminfo mostlyclean-generic mostlyclean-vti
.PHONY: all all-am all-recursive all-redirect check check-am \
check-recursive clean clean-generic clean-recursive distclean \
. 's,\@MFILES\@,' . join (' ', @maintainer_clean_files)
. ',;');
}
+ if ($recursive_install)
+ {
+ $xform .= 's/^NSUBDIRS.*$//;';
+ }
+ else
+ {
+ $xform .= 's/^NSUBDIRS//;';
+ }
$output_rules .= &file_contents ('clean', $xform);
- &depend ('clean-am', 'mostlyclean-am');
- &depend ('distclean-am', 'clean-am');
- &depend ('maintainer-clean-am', 'distclean-am');
foreach ('clean', 'distclean', 'mostlyclean', 'maintainer-clean')
{
- &depend ($_, $_ . '-local')
- if &target_defined ($_ . '-local');
- &depend ($_,
- $_ . ($recursive_install ? '-recursive' : '-am'));
+ &depend ("$_-am", "$_-local")
+ if &target_defined ("$_-local");
}
# We special-case config.status here. If we do it as part of the
mostlyclean-generic:
MOSTLYCLEAN -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
-clean-am: clean-generic
+clean-am: clean-generic mostlyclean-am
clean-generic:
CLEAN -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-distclean-am: distclean-generic
+distclean-am: distclean-generic clean-am
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
DISTCLEAN -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
-maintainer-clean-am: maintainer-clean-generic
+maintainer-clean-am: maintainer-clean-generic distclean-am
maintainer-clean-generic:
## FIXME: shouldn't we really print these messages before running
## the dependencies?
.PHONY: clean mostlyclean distclean maintainer-clean \
clean-generic mostlyclean-generic distclean-generic maintainer-clean-generic
+
+NSUBDIRSclean: clean-am
+NSUBDIRSdistclean: distclean-am
+NSUBDIRSmostlyclean: mostlyclean-am
+NSUBDIRSmaintainer-clean: maintainer-clean-am
mostlyclean-generic:
MOSTLYCLEAN -test -z "$(MOSTLYCLEANFILES)" || rm -f $(MOSTLYCLEANFILES)
-clean-am: clean-generic
+clean-am: clean-generic mostlyclean-am
clean-generic:
CLEAN -test -z "$(CLEANFILES)" || rm -f $(CLEANFILES)
-distclean-am: distclean-generic
+distclean-am: distclean-generic clean-am
distclean-generic:
-rm -f Makefile $(CONFIG_CLEAN_FILES)
-rm -f config.cache config.log stamp-h stamp-h[0-9]*
DISTCLEAN -test -z "$(DISTCLEANFILES)" || rm -f $(DISTCLEANFILES)
-maintainer-clean-am: maintainer-clean-generic
+maintainer-clean-am: maintainer-clean-generic distclean-am
maintainer-clean-generic:
## FIXME: shouldn't we really print these messages before running
## the dependencies?
.PHONY: clean mostlyclean distclean maintainer-clean \
clean-generic mostlyclean-generic distclean-generic maintainer-clean-generic
+
+NSUBDIRSclean: clean-am
+NSUBDIRSdistclean: distclean-am
+NSUBDIRSmostlyclean: mostlyclean-am
+NSUBDIRSmaintainer-clean: maintainer-clean-am
fi; test -z "$$fail"
-mostlyclean-am: mostlyclean-recursive
-clean-am: clean-recursive
-distclean-am: distclean-recursive
-maintainer-clean-am: maintainer-clean-recursive
+mostlyclean: mostlyclean-recursive
+clean: clean-recursive
+distclean: distclean-recursive
+maintainer-clean: maintainer-clean-recursive
.PHONY: mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive
fi; test -z "$$fail"
-mostlyclean-am: mostlyclean-recursive
-clean-am: clean-recursive
-distclean-am: distclean-recursive
-maintainer-clean-am: maintainer-clean-recursive
+mostlyclean: mostlyclean-recursive
+clean: clean-recursive
+distclean: distclean-recursive
+maintainer-clean: maintainer-clean-recursive
.PHONY: mostlyclean-recursive clean-recursive distclean-recursive \
maintainer-clean-recursive