changeset 2394:c96aa059938b

[project @ 1996-10-12 22:51:23 by jwe]
author jwe
date Sat, 12 Oct 1996 22:51:23 +0000
parents 5b04dfde8d55
children cb2ed43762d0
files ChangeLog octMakefile.in
diffstat 2 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Sat Oct 12 00:17:06 1996  John W. Eaton  <jwe@bevo.che.wisc.edu>
 
+	* octMakefile.in (CLEANSUBDIRS): New macro.
+	Use it for clean targets.
+
 	* config.h.bot (STATIC_CAST, DYNAMIC_CAST, REINTERPRET_CAST):
 	New macros.
 
--- a/octMakefile.in
+++ b/octMakefile.in
@@ -35,7 +35,7 @@
 SUBDIRS = @INFO_DIR@ @PLPLOT_DIR@ @READLINE_DIR@ @DLFCN_DIR@ glob \
 	kpathsea libcruft liboctave src scripts doc examples
 
-# Subdirectories in which ot run `make conf-dist'.
+# Subdirectories in which to run `make conf-dist'.
 CONF_DISTSUBDIRS = src
 
 # Subdirectories in which to run `make dist'.
@@ -49,6 +49,9 @@
 # Subdirectories in which to run `make dist'.
 BINDISTSUBDIRS = emacs scripts doc
 
+# Subdirectories in which to run clean targets.
+CLEANSUBDIRS = $(DISTSUBDIRS) 
+
 DIRS_TO_MAKE = $(bindir) $(libdir) $(octincludedir) $(fcnfiledir) \
   $(octfiledir) $(archlibdir) \
   `echo $(localfcnfilepath) | awk -F: '{for (i=1; i<=NF; i++) print $i}'` \
@@ -105,7 +108,7 @@
 .PHONY: install uninstall tags
 
 clean mostlyclean distclean maintainer-clean::
-	$(foreach d, $(SUBDIRS) test, $(do-subdir-for-command))
+	$(foreach d, $(CLEANSUBDIRS), $(do-subdir-for-command))
 .PHONY: clean mostlyclean distclean maintainer-clean
 
 maintainer-clean distclean::