diff options
-rw-r--r-- | include/Makefile | 7 | ||||
-rw-r--r-- | lib/libcurses/Makefile | 11 |
2 files changed, 13 insertions, 5 deletions
diff --git a/include/Makefile b/include/Makefile index 77f7d87e486..b87d98f8685 100644 --- a/include/Makefile +++ b/include/Makefile @@ -19,6 +19,7 @@ FILES= a.out.h ar.h assert.h bitstring.h bm.h ctype.h db.h dirent.h disktab.h \ MFILES= float.h frame.h stdarg.h varargs.h LFILES= errno.h fcntl.h syslog.h termios.h +CFILES= curses.h DIRS= arpa protocols rpc rpcsvc LDIRS= dev net netinet netccitt netiso netns nfs sys ufs vm @@ -54,6 +55,12 @@ realinstall: rm -f ${DESTDIR}/usr/include/$$i; \ ln -s machine/$$i ${DESTDIR}/usr/include/$$i; \ done + @echo installing ${CFILES} + @-for i in ${CFILES}; do \ + cmp -s ../lib/libcurses/$$i ${DESTDIR}/usr/include/$$i || \ + install -c -m 444 ../lib/libcurses/$$i \ + ${DESTDIR}/usr/include/$$i; \ + done chown -R ${BINOWN}:${BINGRP} ${DESTDIR}/usr/include find ${DESTDIR}/usr/include -type f | \ xargs chmod a=r diff --git a/lib/libcurses/Makefile b/lib/libcurses/Makefile index 905eec2aa2c..c427a9a05e1 100644 --- a/lib/libcurses/Makefile +++ b/lib/libcurses/Makefile @@ -11,11 +11,12 @@ SRCS= addbytes.c addch.c addnstr.c box.c clear.c clrtobot.c clrtoeol.c \ standout.c toucholap.c touchwin.c tscroll.c tstp.c tty.c unctrl.c MAN= curses.3 -beforeinstall: - -cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/curses.h > \ - /dev/null 2>&1 || \ - install -c -o ${BINOWN} -g ${BINGRP} -m 444 curses.h \ - ${DESTDIR}/usr/include +# done by src/include/Makefile now +#beforeinstall: +# -cd ${.CURDIR}; cmp -s curses.h ${DESTDIR}/usr/include/curses.h > \ +# /dev/null 2>&1 || \ +# install -c -o ${BINOWN} -g ${BINGRP} -m 444 curses.h \ +# ${DESTDIR}/usr/include .if make(install) SUBDIR+= PSD.doc |