* Makefile.in (clean mostlyclean distclean realclean): Recurse
authorJim Kingdon <jkingdon@engr.sgi.com>
Sun, 16 Jan 1994 17:35:23 +0000 (17:35 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Sun, 16 Jan 1994 17:35:23 +0000 (17:35 +0000)
into subdirectories as well as doing this directory.

readline/ChangeLog
readline/Makefile.in

index 48ed69d..25aca40 100644 (file)
@@ -1,3 +1,8 @@
+Sun Jan 16 12:33:11 1994  Jim Kingdon  (kingdon@lioth.cygnus.com)
+
+       * Makefile.in (clean mostlyclean distclean realclean): Recurse
+       into subdirectories as well as doing this directory.
+
 Sat Jan 15 19:36:12 1994  Per Bothner  (bothner@kalessin.cygnus.com)
 
        * readline.c, display.c:  Patches to allow use of all 80
index 05762db..02269da 100644 (file)
@@ -187,13 +187,25 @@ includes:
                $(INSTALL_FILE) $(srcdir)/keymaps.h $(includedir)/readline/keymaps.h
                $(INSTALL_FILE) $(srcdir)/chardefs.h $(includedir)/readline/chardefs.h
 
-clean mostlyclean:
-               rm -f $(STAGESTUFF) *.a *.log *.cp *.tp *.vr *.fn
-               rm -f *.aux *.pg *.toc
+local-clean:
+       rm -f $(STAGESTUFF) *.a *.log *.cp *.tp *.vr *.fn
+       rm -f *.aux *.pg *.toc
 
-distclean realclean: clean
+local-distclean: local-clean
        rm -f Makefile config.status sysdep.h
 
+mostlyclean: local-clean
+       @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
+
+clean: local-clean
+       @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
+
+distclean: local-distclean
+       @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
+
+realclean: local-realclean
+       @$(MAKE) $(FLAGS_TO_PASS) DO=$@ "DODIRS=$(SUBDIRS)" subdir_do
+
 $(DESTDIR)/libreadline.a: libreadline.a
 
 # Copy the object files from a particular stage into a subdirectory.