Home | History | Annotate | Line # | Download | only in makemandb
Makefile revision 1.5.12.1
      1  1.5.12.1  pgoyette # $NetBSD: Makefile,v 1.5.12.1 2016/07/26 03:24:24 pgoyette Exp $
      2       1.1     joerg 
      3       1.1     joerg .include <bsd.own.mk>
      4       1.1     joerg 
      5       1.1     joerg MDOCDIR=${NETBSDSRCDIR}/external/bsd/mdocml
      6       1.3       wiz MANCONFDIR=${NETBSDSRCDIR}/usr.bin/man
      7       1.1     joerg 
      8       1.1     joerg PROGS=			makemandb apropos whatis
      9       1.3       wiz SRCS.makemandb=		makemandb.c apropos-utils.c manconf.c
     10       1.3       wiz SRCS.apropos=	apropos.c apropos-utils.c manconf.c
     11       1.3       wiz SRCS.whatis=	whatis.c apropos-utils.c manconf.c
     12       1.1     joerg MAN.makemandb=	makemandb.8
     13       1.1     joerg MAN.apropos=	apropos.1
     14       1.1     joerg MAN.whatis=	whatis.1
     15       1.1     joerg 
     16       1.1     joerg BINDIR.apropos=		/usr/bin
     17       1.1     joerg BINDIR.makemandb=	/usr/sbin
     18       1.1     joerg BINDIR.whatis=		/usr/bin
     19       1.1     joerg 
     20       1.3       wiz .PATH: ${MANCONFDIR}
     21       1.3       wiz 
     22       1.4  christos CPPFLAGS+= -I${MDOCDIR} -I${MANCONFDIR} -I${.OBJDIR}
     23       1.1     joerg 
     24       1.1     joerg MDOCMLOBJDIR!=	cd ${MDOCDIR}/lib/libmandoc && ${PRINTOBJDIR}
     25       1.1     joerg MDOCMLLIB=	${MDOCMLOBJDIR}/libmandoc.a
     26       1.1     joerg 
     27  1.5.12.1  pgoyette DPADD.makemandb+= 	${MDOCMLLIB} ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBZ}
     28  1.5.12.1  pgoyette LDADD.makemandb+= 	-L${MDOCMLOBJDIR} -lmandoc -larchive -lbz2 -llzma -lz
     29       1.5  christos DPADD+=		${LIBSQLITE3} ${LIBM} ${LIBZ} ${LIBTERMLIB} ${LIBUTIL}
     30       1.5  christos LDADD+=		-lsqlite3 -lm -lz -ltermlib -lutil
     31       1.1     joerg 
     32       1.1     joerg stopwords.c: stopwords.txt
     33       1.1     joerg 	( set -e; ${TOOL_NBPERF} -n stopwords_hash -s -p ${.ALLSRC};	\
     34       1.1     joerg 	echo 'static const char *stopwords[] = {';			\
     35       1.1     joerg 	${TOOL_SED} -e 's|^\(.*\)$$|	"\1",|' ${.ALLSRC};		\
     36       1.1     joerg 	echo '};'							\
     37       1.1     joerg 	) > ${.TARGET}
     38       1.1     joerg 
     39       1.1     joerg DPSRCS+=	stopwords.c
     40       1.1     joerg CLEANFILES+=	stopwords.c
     41       1.1     joerg 
     42       1.1     joerg .include <bsd.prog.mk>
     43