-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
45 lines (34 loc) · 1.38 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
# $NetBSD: Makefile,v 1.3 2012/10/06 15:33:59 wiz Exp $
.include <bsd.own.mk>
MDIST= ${NETBSDSRCDIR}/external/bsd/mdocml/dist
MDOCDIR=${NETBSDSRCDIR}/external/bsd/mdocml
MANCONFDIR=${NETBSDSRCDIR}/usr.bin/man
PROGS= makemandb apropos whatis apropos.cgi suggest.cgi
SRCS.makemandb= makemandb.c apropos-utils.c manconf.c
SRCS.apropos= apropos.c apropos-utils.c manconf.c
SRCS.whatis= whatis.c apropos-utils.c manconf.c
SRCS.apropos.cgi= apropos_cgi.c apropos-utils.c cgi-utils.c manconf.c
SRCS.suggest.cgi= suggest_cgi.c cgi-utils.c apropos-utils.c manconf.c
MAN.makemandb= makemandb.8
MAN.apropos= apropos.1
MAN.whatis= whatis.1
BINDIR.apropos= /usr/bin
BINDIR.makemandb= /usr/sbin
BINDIR.whatis= /usr/bin
.PATH: ${MANCONFDIR}
CPPFLAGS+=-I${MDIST} -I${MANCONFDIR} -I${.OBJDIR}
MDOCMLOBJDIR!= cd ${MDOCDIR}/lib/libmandoc && ${PRINTOBJDIR}
MDOCMLLIB= ${MDOCMLOBJDIR}/libmandoc.a
DPADD.makemandb+= ${MDOCMLLIB} ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA}
LDADD.makemandb+= -L${MDOCMLOBJDIR} -lmandoc -larchive -lbz2 -llzma
DPADD+= ${LIBSQLITE3} ${LIBM} ${LIBZ} ${LIBUTIL}
LDADD+= -lsqlite3 -lm -lz -lutil
stopwords.c: stopwords.txt
( set -e; ${TOOL_NBPERF} -n stopwords_hash -s -p ${.ALLSRC}; \
echo 'static const char *stopwords[] = {'; \
${TOOL_SED} -e 's|^\(.*\)$$| "\1",|' ${.ALLSRC}; \
echo '};' \
) > ${.TARGET}
DPSRCS+= stopwords.c
CLEANFILES+= stopwords.c
.include <bsd.prog.mk>