From 08c9aafdbb65568c2547a29e0b20163a60cbba6a Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Wed, 23 Feb 2005 04:05:40 +0000 Subject: make sure subdirs requires the toplevel $(LIBM) already exists --- libm/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libm/Makefile') diff --git a/libm/Makefile b/libm/Makefile index f3a4611a5..d2271b2f1 100644 --- a/libm/Makefile +++ b/libm/Makefile @@ -84,7 +84,7 @@ OBJS=$(COBJS) ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y) -all: clean subdirs +all: else all: $(LIBM) subdirs endif @@ -125,10 +125,10 @@ clean: subdirs_clean subdirs: $(patsubst %, _dir_%, $(DIRS)) subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) -$(patsubst %, _dir_%, $(DIRS)) : $(OBJS) +$(patsubst %, _dir_%, $(DIRS)): $(LIBM) $(MAKE) -C $(patsubst _dir_%, %, $@) -$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) : dummy +$(patsubst %, _dirclean_%, $(ALL_SUBDIRS)): dummy $(MAKE) -C $(patsubst _dirclean_%, %, $@) clean .PHONY: dummy -- cgit v1.2.3