PRIV: Remove OpenSSL entries from mtree.
[dragonfly.git] / share / terminfo / Makefile
blob56610f50c890f66694d590999ec09896dc9c3657
1 .include "Makefile.entries"
3 NOMAN=
5 CLEANFILES+= run_tic.sed run_tic.sh terminfo.tmp
6 CLEANDIRS+= terminfo
8 TINFODIR= ${SHAREDIR}/terminfo
9 MISCDIR= ${.CURDIR}/../../contrib/ncurses/misc
10 PSOURCE= ${.CURDIR}/../../contrib/ncurses/progs
11 TSOURCE= ${MISCDIR}/terminfo.src
12 CFLAGS+= -I${PSOURCE} -I${.CURDIR}/../../lib/libncurses/include
14 all: terminfo
16 run_tic.sed:
17 WHICH_XTERM=xterm-new \
18 ticdir=${FILESDIR}/terminfo \
19 sh ${MISCDIR}/gen_edit.sh > ${.TARGET}
21 run_tic.sh:
22 cat ${MISCDIR}/run_tic.in | sed \
23 -e 's;@PROG_EXT@;;g' \
24 -e 's;@DESTDIR@;;g' \
25 -e 's;@TERMINFO@;${.CURDIR}/terminfo;g' \
26 -e 's;@TERMINFO_SRC@;${TSOURCE};g' \
27 -e 's;@TIC_PATH@;tic;g' \
28 -e 's;@NCURSES_EXT_FUNCS@;1;g' \
29 -e 's;@LN_S@;ln -s -f;g' \
30 -e 's;@prefix@;/usr;g' \
31 -e 's;@exec_prefix@;/usr;g' \
32 -e 's;@bindir@;/usr/bin;g' \
33 -e 's;@datadir@;/usr/share;g' \
34 -e 's;@top_srcdir@;..;g' \
35 -e 's;@srcdir@;.;g' \
36 > ${.TARGET}
39 terminfo.tmp: run_tic.sed ${TSOURCE}
40 sed -f run_tic.sed ${TSOURCE} > ${.TARGET}
42 terminfo: run_tic.sh terminfo.tmp
43 sh run_tic.sh
45 install:
46 # Directories aren't created on the fly; handled by mtree/BSD.usr.dist
47 # for ITEM in ${LEVEL1}; do \
48 # ${INSTALL} -d -m 755 -o ${BINOWN} -g ${BINGRP} \
49 # ${DESTDIR}${TINFODIR}/$${ITEM}; \
50 # done
51 for ITEM in ${ENTRY}; do \
52 ${INSTALL} -m 644 -o ${BINOWN} -g ${BINGRP} \
53 terminfo/$${ITEM} ${DESTDIR}${TINFODIR}/$${ITEM}; \
54 done
56 .include <bsd.prog.mk>