]> git.mdlowis.com Git - proto/albase.git/commitdiff
Updated musl rules to copy the include files on successful build
authorMike Lowis <mike.lowis@gentex.com>
Wed, 4 May 2016 14:43:40 +0000 (10:43 -0400)
committerMike Lowis <mike.lowis@gentex.com>
Wed, 4 May 2016 14:43:40 +0000 (10:43 -0400)
Makefile
source/musl/Rules.mk

index 996185696500bbb52e8c4cd28c6456dfc692c38e..8c61158669f2c40277045db992359d75d428c9a5 100644 (file)
--- 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
index 65a7d731c962999659bdfd85e14c06287a613675..758baa48ee880f72e36a13c7d1ff9185c70485b3 100644 (file)
@@ -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)