From a8abed9426ca4d99ec9b07bd6fed928d4c06e244 Mon Sep 17 00:00:00 2001 From: Alexey Zelkin Date: Mon, 10 Jan 2000 12:12:51 +0000 Subject: [PATCH] Install html files to /usr/share/doc/ncurses/ --- lib/libncurses/Makefile | 9 +++++++++ lib/ncurses/ncurses/Makefile | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/lib/libncurses/Makefile b/lib/libncurses/Makefile index 731262916947..753d76691c72 100644 --- a/lib/libncurses/Makefile +++ b/lib/libncurses/Makefile @@ -244,12 +244,21 @@ SYMLINKS+=libncurses_p.a ${LIBDIR}/libmytinfo_p.a SYMLINKS+=libncurses_p.a ${LIBDIR}/libtinfo_p.a .endif +DOCSDIR= /usr/share/doc/ncurses +DOCS= ncurses-intro.html hackguide.html + beforeinstall: ${HEADERS} ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${HEADERS} \ ${DESTDIR}/usr/include rm -f ${DESTDIR}/usr/include/ncurses.h ln -s curses.h ${DESTDIR}/usr/include/ncurses.h +.for file in ${DOCS} + cd ${.CURDIR}/../../contrib/ncurses/misc ; \ + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${file} \ + ${DESTDIR}${DOCSDIR} +.endfor + # Generated source namehdr nameftr codeftr ${NAMESRC} ${CODESRC}: MKnames.awk Caps ${AWK} -f ${NCURSES}/ncurses/tinfo/MKnames.awk ${NCURSES}/include/Caps diff --git a/lib/ncurses/ncurses/Makefile b/lib/ncurses/ncurses/Makefile index 731262916947..753d76691c72 100644 --- a/lib/ncurses/ncurses/Makefile +++ b/lib/ncurses/ncurses/Makefile @@ -244,12 +244,21 @@ SYMLINKS+=libncurses_p.a ${LIBDIR}/libmytinfo_p.a SYMLINKS+=libncurses_p.a ${LIBDIR}/libtinfo_p.a .endif +DOCSDIR= /usr/share/doc/ncurses +DOCS= ncurses-intro.html hackguide.html + beforeinstall: ${HEADERS} ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${HEADERS} \ ${DESTDIR}/usr/include rm -f ${DESTDIR}/usr/include/ncurses.h ln -s curses.h ${DESTDIR}/usr/include/ncurses.h +.for file in ${DOCS} + cd ${.CURDIR}/../../contrib/ncurses/misc ; \ + ${INSTALL} -c -o ${BINOWN} -g ${BINGRP} -m 444 ${file} \ + ${DESTDIR}${DOCSDIR} +.endfor + # Generated source namehdr nameftr codeftr ${NAMESRC} ${CODESRC}: MKnames.awk Caps ${AWK} -f ${NCURSES}/ncurses/tinfo/MKnames.awk ${NCURSES}/include/Caps