From d4fad9c64ee518be51ecb40662af69b405a49556 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 1 Mar 2005 04:43:58 +0000 Subject: make sure we only create libm.a before running through subdirs, then install it --- libm/Makefile | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'libm/Makefile') diff --git a/libm/Makefile b/libm/Makefile index d2271b2f1..7a0edbea5 100644 --- a/libm/Makefile +++ b/libm/Makefile @@ -89,9 +89,12 @@ else all: $(LIBM) subdirs endif -$(LIBM) ar-target: $(OBJS) -ifeq ($(strip $(UCLIBC_HAS_FLOATS)),y) +ifneq ($(strip $(UCLIBC_HAS_FLOATS)),y) +$(LIBM) ar-target: +else +ar-target: $(OBJS) $(AR) $(ARFLAGS) $(LIBM) $(OBJS) +$(LIBM): ar-target $(INSTALL) -d $(TOPDIR)lib $(RM) $(TOPDIR)lib/$(LIBM) $(INSTALL) -m 644 $(LIBM) $(TOPDIR)lib @@ -125,7 +128,7 @@ clean: subdirs_clean subdirs: $(patsubst %, _dir_%, $(DIRS)) subdirs_clean: $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)) -$(patsubst %, _dir_%, $(DIRS)): $(LIBM) +$(patsubst %, _dir_%, $(DIRS)): ar-target $(MAKE) -C $(patsubst _dir_%, %, $@) $(patsubst %, _dirclean_%, $(ALL_SUBDIRS)): dummy -- cgit v1.2.3