xref: /freebsd/contrib/libxo/doc/Makefile.am (revision 76afb20c58adb296f09857aed214b91464242264)
131337658SMarcel Moolenaar#
231337658SMarcel Moolenaar# $Id$
331337658SMarcel Moolenaar#
431337658SMarcel Moolenaar# Copyright 2014, Juniper Networks, Inc.
531337658SMarcel Moolenaar# All rights reserved.
631337658SMarcel Moolenaar# This SOFTWARE is licensed under the LICENSE provided in the
731337658SMarcel Moolenaar# ../Copyright file. By downloading, installing, copying, or otherwise
831337658SMarcel Moolenaar# using the SOFTWARE, you agree to be bound by the terms of that
931337658SMarcel Moolenaar# LICENSE.
1031337658SMarcel Moolenaar
11*76afb20cSPhil Shaferdoc docs: xolint.rst html
1231337658SMarcel Moolenaar
13*76afb20cSPhil Shafer#
14*76afb20cSPhil Shafer# The contents of xolint.rst is generated based on xolint.pl, since we
15*76afb20cSPhil Shafer# really want this to be self-documenting.  But readthedocs.org needs this
16*76afb20cSPhil Shafer# data to be _in_ repo.  So we generate this file on command only, and
17*76afb20cSPhil Shafer# the developer needs to commit any changes.
18*76afb20cSPhil Shafer#
1931337658SMarcel Moolenaar
20*76afb20cSPhil Shaferxolint.rst: ${top_srcdir}/xolint/xolint.pl
21*76afb20cSPhil Shafer	perl ${top_srcdir}/xolint/xolint.pl -D > ${top_srcdir}/doc/xolint.rst
2231337658SMarcel Moolenaar
23*76afb20cSPhil ShaferSPHINX = python3 -msphinx
24983afe33SPhil Shafer
25983afe33SPhil Shaferhtml sphinx sphinx-html:
26*76afb20cSPhil Shafer	${SPHINX} -M html ${srcdir} . -N -E
27*76afb20cSPhil Shafer
28*76afb20cSPhil Shafersinglehtml:
29*76afb20cSPhil Shafer	${SPHINX} -M singlehtml ${srcdir} . -N -E
30