[hackers] [9base] install lib9.a || sin

From: <git_AT_suckless.org>
Date: Thu, 09 Oct 2014 12:34:35 +0200

commit 4fe8994317557febe21758a92fe26edbce6d517d
Author: sin <sin_AT_2f30.org>
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
_AT_@ -213,8 +213,11 @@ all: ${LIB}
         _AT_echo built lib9
 
 install:
+ _AT_mkdir -p ${DESTDIR}${PREFIX}/lib
+ _AT_cp -f ${LIB} ${DESTDIR}${PREFIX}/lib/
 
 uninstall:
+ rm -f ${DESTDIR}${PREFIX}/lib/${LIB}
 
 ${LIB}: ${OFILES}
         _AT_echo AR ${TARG}
Received on Thu Oct 09 2014 - 12:34:35 CEST

This archive was generated by hypermail 2.3.0 : Thu Oct 09 2014 - 12:36:14 CEST