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().
-emg
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}