1# $FreeBSD$ 2 3.include <src.opts.mk> 4 5.include "${SRCTOP}/lib/kyua/Makefile.kyua" 6 7.PATH: ${KYUA_SRCDIR} 8 9PROG_CXX= kyua 10SRCS= main.cpp 11LIBADD= kyua_cli kyua_drivers kyua_engine kyua_model kyua_store 12 13MAN= kyua-about.1 \ 14 kyua-config.1 \ 15 kyua-db-exec.1 \ 16 kyua-db-migrate.1 \ 17 kyua-debug.1 \ 18 kyua-help.1 \ 19 kyua-list.1 \ 20 kyua-report-html.1 \ 21 kyua-report-junit.1 \ 22 kyua-report.1 \ 23 kyua-test.1 \ 24 kyua.1 \ 25 kyua.conf.5 \ 26 kyuafile.5 27 28CFLAGS+= -I${KYUA_SRCDIR} 29 30# kyua uses auto_ptr 31CFLAGS+= -Wno-deprecated-declarations 32 33FILESGROUPS= DOCS MISC STORE 34 35.if ${MK_EXAMPLES} != "no" 36FILESGROUPS+= EXAMPLES 37.endif 38 39# Install a minimal default config that uses the 'tests' user. 40# The examples config is not appropriate for general use. 41CONFS= kyua.conf-default 42CONFSDIR= ${KYUA_CONFDIR} 43CONFSNAME= kyua.conf 44 45DOCS= AUTHORS CONTRIBUTORS LICENSE 46DOCSDIR= ${KYUA_DOCDIR} 47 48EXAMPLES= Kyuafile.top kyua.conf 49EXAMPLESDIR= ${KYUA_EGDIR} 50.PATH: ${KYUA_SRCDIR}/examples 51 52MISC= context.html index.html report.css test_result.html 53MISCDIR= ${KYUA_MISCDIR} 54.PATH: ${KYUA_SRCDIR}/misc 55 56STORE= migrate_v1_v2.sql migrate_v2_v3.sql schema_v3.sql 57STOREDIR= ${KYUA_STOREDIR} 58.PATH: ${KYUA_SRCDIR}/store 59 60CLEANFILES+= ${MAN} 61.PATH: ${KYUA_SRCDIR}/doc 62.for man in ${MAN} 63${man}: ${man}.in 64 sh ${KYUA_SRCDIR}/doc/manbuild.sh \ 65 -v "CONFDIR=${KYUA_CONFDIR}" \ 66 -v "DOCDIR=${KYUA_DOCDIR}" \ 67 -v "EGDIR=${KYUA_EGDIR}" \ 68 -v "MISCDIR=${KYUA_MISCDIR}" \ 69 -v "PACKAGE=kyua" \ 70 -v "STOREDIR=${KYUA_STOREDIR}" \ 71 -v "TESTSDIR=${TESTSBASE}" \ 72 -v "VERSION=${KYUA_VERSION}" \ 73 ${.ALLSRC} ${.TARGET} 74.endfor 75 76.include <bsd.prog.mk> 77