Install html files to /usr/share/doc/ncurses/

This commit is contained in:
Alexey Zelkin 2000-01-10 12:12:51 +00:00
parent 7acf45ca1e
commit a8abed9426
2 changed files with 18 additions and 0 deletions

View File

@ -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

View File

@ -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