commit 4fe8994317557febe21758a92fe26edbce6d517d
Author: sin <[email protected]>
Date:   Thu Oct 9 11:34:03 2014 +0100

    install lib9.a
    
    This patch installs lib9.a in ${DESTDIR}${PREFIX}/lib/ so it can be
    linked against with -l9 (given the correct -L). I found that necessary
    to compile y.tab.c generated by 9base's yacc due to sprint().
    
    Patch contributed by Evan Gates.

diff --git a/lib9/Makefile b/lib9/Makefile
index 8031113..b83ab2b 100644
--- a/lib9/Makefile
+++ b/lib9/Makefile
@@ -213,8 +213,11 @@ all: ${LIB}
        @echo built lib9
 
 install:
+       @mkdir -p ${DESTDIR}${PREFIX}/lib
+       @cp -f ${LIB} ${DESTDIR}${PREFIX}/lib/
 
 uninstall:
+       rm -f ${DESTDIR}${PREFIX}/lib/${LIB}
 
 ${LIB}: ${OFILES}
        @echo AR ${TARG}


Reply via email to