Makefile revision 1.9
11.9Sabhinav# $NetBSD: Makefile,v 1.9 2017/06/18 16:24:10 abhinav Exp $ 21.1Sjoerg 31.1Sjoerg.include <bsd.own.mk> 41.1Sjoerg 51.1SjoergMDOCDIR=${NETBSDSRCDIR}/external/bsd/mdocml 61.3SwizMANCONFDIR=${NETBSDSRCDIR}/usr.bin/man 71.1Sjoerg 81.1SjoergPROGS= makemandb apropos whatis 91.9SabhinavSRCS.makemandb= makemandb.c apropos-utils.c manconf.c custom_apropos_tokenizer.c 101.9SabhinavSRCS.apropos= apropos.c apropos-utils.c manconf.c custom_apropos_tokenizer.c 111.9SabhinavSRCS.whatis= whatis.c apropos-utils.c manconf.c custom_apropos_tokenizer.c 121.1SjoergMAN.makemandb= makemandb.8 131.1SjoergMAN.apropos= apropos.1 141.1SjoergMAN.whatis= whatis.1 151.1Sjoerg 161.1SjoergBINDIR.apropos= /usr/bin 171.1SjoergBINDIR.makemandb= /usr/sbin 181.1SjoergBINDIR.whatis= /usr/bin 191.1Sjoerg 201.3Swiz.PATH: ${MANCONFDIR} 211.3Swiz 221.4SchristosCPPFLAGS+= -I${MDOCDIR} -I${MANCONFDIR} -I${.OBJDIR} 231.1Sjoerg 241.1SjoergMDOCMLOBJDIR!= cd ${MDOCDIR}/lib/libmandoc && ${PRINTOBJDIR} 251.1SjoergMDOCMLLIB= ${MDOCMLOBJDIR}/libmandoc.a 261.1Sjoerg 271.6SchristosDPADD.makemandb+= ${MDOCMLLIB} ${LIBARCHIVE} ${LIBBZ2} ${LIBLZMA} ${LIBZ} 281.6SchristosLDADD.makemandb+= -L${MDOCMLOBJDIR} -lmandoc -larchive -lbz2 -llzma -lz 291.7SchristosLDADD.makemandb+= -lcrypto 301.7SchristosDPADD.makemandb+= ${LIBCRYPTO} 311.7Schristos 321.5SchristosDPADD+= ${LIBSQLITE3} ${LIBM} ${LIBZ} ${LIBTERMLIB} ${LIBUTIL} 331.5SchristosLDADD+= -lsqlite3 -lm -lz -ltermlib -lutil 341.1Sjoerg 351.1Sjoergstopwords.c: stopwords.txt 361.1Sjoerg ( set -e; ${TOOL_NBPERF} -n stopwords_hash -s -p ${.ALLSRC}; \ 371.1Sjoerg echo 'static const char *stopwords[] = {'; \ 381.1Sjoerg ${TOOL_SED} -e 's|^\(.*\)$$| "\1",|' ${.ALLSRC}; \ 391.1Sjoerg echo '};' \ 401.1Sjoerg ) > ${.TARGET} 411.1Sjoerg 421.9Sabhinavnostem.c: nostem.txt 431.9Sabhinav ( set -e; ${TOOL_NBPERF} -n nostem_hash -s -p ${.ALLSRC}; \ 441.9Sabhinav echo 'static const char *nostem[] = {'; \ 451.9Sabhinav ${TOOL_SED} -e 's|^\(.*\)$$| "\1",|' ${.ALLSRC}; \ 461.9Sabhinav echo '};' \ 471.9Sabhinav ) > ${.TARGET} 481.9Sabhinav 491.9SabhinavDPSRCS+= stopwords.c nostem.c 501.9SabhinavCLEANFILES+= stopwords.c nostem.c 511.1Sjoerg 521.1Sjoerg.include <bsd.prog.mk> 53