import libedit from OpenBSD
[unleashed.git] / lib / libedit / readline / Makefile
blob3ee8f4766a032a73ee99b34b748d6a4ca111b767
1 # $OpenBSD: Makefile,v 1.2 2016/03/20 23:48:27 schwarze Exp $
2 # $NetBSD: Makefile,v 1.7 2003/08/03 09:23:15 lukem Exp $
4 NOOBJ= # defined
6 .include <bsd.own.mk>
8 includes:
9 ${INSTALL} -d -o ${BINOWN} -g ${BINGRP} -m 755 \
10 ${DESTDIR}/usr/include/readline
11 -cd ${.CURDIR}; cmp -s readline.h ${DESTDIR}/usr/include/readline/readline.h > \
12 /dev/null 2>&1 || \
13 ${INSTALL} ${INSTALL_COPY} -o ${BINOWN} -g ${BINGRP} -m 444 readline.h \
14 ${DESTDIR}/usr/include/readline
15 rm -f ${DESTDIR}/usr/include/readline/history.h
16 cd ${DESTDIR}/usr/include/readline && ln -s readline.h history.h
18 .include <bsd.prog.mk>