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