summaryrefslogtreecommitdiff
path: root/libm
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2005-03-01 04:43:58 +0000
committerMike Frysinger <vapier@gentoo.org>2005-03-01 04:43:58 +0000
commitd4fad9c64ee518be51ecb40662af69b405a49556 (patch)
tree6b5a9ce1e6c041bee51f7a28b396fb59a0576069 /libm
parent702cfb3363c69e1a94ca711fa0e0339db1489b48 (diff)
make sure we only create libm.a before running through subdirs, then install it
Diffstat (limited to 'libm')
-rw-r--r--libm/Makefile9
1 files changed, 6 insertions, 3 deletions
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