summaryrefslogtreecommitdiff
path: root/libc/sysdeps/linux/Makefile
diff options
context:
space:
mode:
authorEric Andersen <andersen@codepoet.org>2001-01-12 09:16:13 +0000
committerEric Andersen <andersen@codepoet.org>2001-01-12 09:16:13 +0000
commitdee92a2d222d0ebe49a9ddf8c409cbc2431c945b (patch)
treed7c46d93fa3c866d13feb42de0624dba71651934 /libc/sysdeps/linux/Makefile
parentae97a89e1a1a9833080dccc81f6cd26784e1b964 (diff)
When doing a 'make clean', clean all subdirs, not just the current arch.
Diffstat (limited to 'libc/sysdeps/linux/Makefile')
-rw-r--r--libc/sysdeps/linux/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/libc/sysdeps/linux/Makefile b/libc/sysdeps/linux/Makefile
index fb7808913..a8491980f 100644
--- a/libc/sysdeps/linux/Makefile
+++ b/libc/sysdeps/linux/Makefile
@@ -24,6 +24,7 @@ TOPDIR=../../
include $(TOPDIR)Rules.mak
DIRS = $(TARGET_ARCH) common
+ALL_SUBDIRS = $(shell find * -type d -prune -name [a-z]\*)
all: libc.a
@@ -35,12 +36,12 @@ tags:
clean: subdirs_clean
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