Home | History | Annotate | Line # | Download | only in makemandb
Makefile revision 1.1.2.1
      1  1.1.2.1    riz # $NetBSD: Makefile,v 1.1.2.1 2012/02/18 18:03:26 riz Exp $
      2      1.1  joerg 
      3      1.1  joerg .include <bsd.own.mk>
      4      1.1  joerg 
      5      1.1  joerg MDIST=	${NETBSDSRCDIR}/external/bsd/mdocml/dist
      6      1.1  joerg MDOCDIR=${NETBSDSRCDIR}/external/bsd/mdocml
      7      1.1  joerg 
      8      1.1  joerg PROGS=			makemandb apropos whatis
      9      1.1  joerg SRCS.makemandb=		makemandb.c apropos-utils.c
     10      1.1  joerg SRCS.apropos=	apropos.c apropos-utils.c
     11      1.1  joerg SRCS.whatis=	whatis.c apropos-utils.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.1  joerg CPPFLAGS+=-I${MDIST} -I${.OBJDIR}
     21      1.1  joerg 
     22      1.1  joerg MDOCMLOBJDIR!=	cd ${MDOCDIR}/lib/libmandoc && ${PRINTOBJDIR}
     23      1.1  joerg MDOCMLLIB=	${MDOCMLOBJDIR}/libmandoc.a
     24      1.1  joerg 
     25  1.1.2.1    riz DPADD.makemandb+= 	${MDOCMLLIB} ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA}
     26  1.1.2.1    riz LDADD.makemandb+= 	-L${MDOCMLOBJDIR} -lmandoc -larchive -lbz2 -llzma
     27      1.1  joerg DPADD+=		${LIBSQLITE3} ${LIBM} ${LIBZ} ${LIBUTIL}
     28      1.1  joerg LDADD+=		-lsqlite3 -lm -lz -lutil
     29      1.1  joerg 
     30      1.1  joerg stopwords.c: stopwords.txt
     31      1.1  joerg 	( set -e; ${TOOL_NBPERF} -n stopwords_hash -s -p ${.ALLSRC};	\
     32      1.1  joerg 	echo 'static const char *stopwords[] = {';			\
     33      1.1  joerg 	${TOOL_SED} -e 's|^\(.*\)$$|	"\1",|' ${.ALLSRC};		\
     34      1.1  joerg 	echo '};'							\
     35      1.1  joerg 	) > ${.TARGET}
     36      1.1  joerg 
     37      1.1  joerg DPSRCS+=	stopwords.c
     38      1.1  joerg CLEANFILES+=	stopwords.c
     39      1.1  joerg 
     40      1.1  joerg .include <bsd.prog.mk>
     41