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