From cfcf2c267b2dbb1a7fbbfdd82610330b45ead734 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Tue, 16 Jan 2001 10:11:26 +0000 Subject: Clean all subdirs on 'make clean' --- libc/stdlib/Makefile | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'libc/stdlib') diff --git a/libc/stdlib/Makefile b/libc/stdlib/Makefile index 52d00f876..06d87c674 100644 --- a/libc/stdlib/Makefile +++ b/libc/stdlib/Makefile @@ -25,6 +25,7 @@ include $(TOPDIR)Rules.mak LIBC=$(TOPDIR)libc.a DIRS = $(MALLOC) +ALL_SUBDIRS = $(shell find * -type d -prune -name [a-z]\*) MSRC=strto_l.c MOBJ=strtol.o strtoul.o strto_l.o @@ -72,12 +73,12 @@ $(COBJS): %.o : %.c $(OBJ): Makefile subdirs: $(patsubst %, _dir_%, $(DIRS)) -subdirs_clean: $(patsubst %, _dirclean_%, $(DIRS)) +subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) $(patsubst %, _dir_%, $(DIRS)) : dummy $(MAKE) -C $(patsubst _dir_%, %, $@) -$(patsubst %, _dirclean_%, $(DIRS)) : dummy +$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean clean: subdirs_clean -- cgit v1.2.3