From: Mike Lowis Date: Wed, 4 May 2016 14:43:40 +0000 (-0400) Subject: Updated musl rules to copy the include files on successful build X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=3406d7af463e8558338df9fd25e5a67869817924;p=proto%2Falbase.git Updated musl rules to copy the include files on successful build --- diff --git a/Makefile b/Makefile index 99618569..8c611586 100644 --- a/Makefile +++ b/Makefile @@ -47,6 +47,7 @@ all: $(PHONY) clean: @echo cleaning @$(RM) $(BUILDDIR)/dummy $(ECLEAN) + @$(RM) -r $(BUILDDIR)/include # load dependency files if they exist -include $(DEPS) @@ -58,6 +59,7 @@ clean: # Ensure The Build Dir Exists #------------------------------------------------------------------------------ $(BUILDDIR)/dummy: - mkdir -p $(DIRS) - touch $@ + @echo creating build dirs + @mkdir -p $(DIRS) + @touch $@ -include $(BUILDDIR)/dummy diff --git a/source/musl/Rules.mk b/source/musl/Rules.mk index 65a7d731..758baa48 100644 --- a/source/musl/Rules.mk +++ b/source/musl/Rules.mk @@ -1372,9 +1372,11 @@ MUSL_OBJS = \ $(MUSL_OBJDIR)/ldso/dlstart.o libc: $(MUSL_LIBC) $(MUSL_CRT_OBJS) + cp -R $(MUSL_SUBDIR)/include $(BUILDDIR) $(MUSL_LIBC): $(MUSL_OBJS) - $(ARCHIVE) + @echo $(AR) $(ARFLAGS) $@ + @$(ARCHIVE) $(MUSL_OBJDIR)/%.o: $(MUSL_SUBDIR)/%.c $(MUSL_COMPILE)