1# $Id: Makefile,v 1.12 1994/06/11 15:18:01 paul Exp $
2
3
4CFLAGS+= -I${.CURDIR} -DVOID_SIGHANDLER \
5 -DHAVE_UNISTD_H -DHAVE_STRING_H -DHAVE_STDLIB_H -DHAVE_VARARGS_H \
6 -DFreeBSD
7
8LIB= readline
9SRCS+= readline.c funmap.c keymaps.c vi_mode.c parens.c \
10 rltty.c complete.c bind.c isearch.c display.c signals.c \
11 history.c search.c tilde.c xmalloc.c
12HEADERS= history.h readline.h keymaps.h chardefs.h tilde.h
13NOMAN= noman
14
15beforeinstall:
16 @-if [ ! -d ${DESTDIR}/usr/include/readline ]; then \
17 mkdir ${DESTDIR}/usr/include/readline; \
18 chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/readline; \
19 chmod 755 ${DESTDIR}/usr/include/readline; \
20 fi
21 cd ${.CURDIR}/readline; \
22 install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
23 ${HEADERS} ${DESTDIR}/usr/include/readline
24
25.include <bsd.lib.mk>
2
3
4CFLAGS+= -I${.CURDIR} -DVOID_SIGHANDLER \
5 -DHAVE_UNISTD_H -DHAVE_STRING_H -DHAVE_STDLIB_H -DHAVE_VARARGS_H \
6 -DFreeBSD
7
8LIB= readline
9SRCS+= readline.c funmap.c keymaps.c vi_mode.c parens.c \
10 rltty.c complete.c bind.c isearch.c display.c signals.c \
11 history.c search.c tilde.c xmalloc.c
12HEADERS= history.h readline.h keymaps.h chardefs.h tilde.h
13NOMAN= noman
14
15beforeinstall:
16 @-if [ ! -d ${DESTDIR}/usr/include/readline ]; then \
17 mkdir ${DESTDIR}/usr/include/readline; \
18 chown ${BINOWN}.${BINGRP} ${DESTDIR}/usr/include/readline; \
19 chmod 755 ${DESTDIR}/usr/include/readline; \
20 fi
21 cd ${.CURDIR}/readline; \
22 install -c -o ${BINOWN} -g ${BINGRP} -m 444 \
23 ${HEADERS} ${DESTDIR}/usr/include/readline
24
25.include <bsd.lib.mk>