summaryrefslogtreecommitdiff
path: root/libm/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'libm/Makefile')
-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