xref: /freebsd/contrib/libxo/doc/Makefile.am (revision cdcd52d41e246ba1c0fcfad0769bd691487355ef)
1#
2# $Id$
3#
4# Copyright 2014, Juniper Networks, Inc.
5# All rights reserved.
6# This SOFTWARE is licensed under the LICENSE provided in the
7# ../Copyright file. By downloading, installing, copying, or otherwise
8# using the SOFTWARE, you agree to be bound by the terms of that
9# LICENSE.
10
11doc docs: xolint.rst html
12
13#
14# The contents of xolint.rst is generated based on xolint.pl, since we
15# really want this to be self-documenting.  But readthedocs.org needs this
16# data to be _in_ repo.  So we generate this file on command only, and
17# the developer needs to commit any changes.
18#
19
20xolint.rst: ${top_srcdir}/xolint/xolint.pl
21	perl ${top_srcdir}/xolint/xolint.pl -D > ${top_srcdir}/doc/xolint.rst
22
23SPHINX = python3 -msphinx
24
25html sphinx sphinx-html:
26	${SPHINX} -M html ${srcdir} . -N -E
27
28singlehtml:
29	${SPHINX} -M singlehtml ${srcdir} . -N -E
30