safsaf/doc/Makefile.am

55 lines
2 KiB
Text
Raw Normal View History

# Safsaf, a Guile web framework
# Copyright (C) 2026 Christopher Baines <mail@cbaines.net>
#
# This program is free software: you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public License
# as published by the Free Software Foundation, either version 3 of
# the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this program. If not, see
# <https://www.gnu.org/licenses/>.
info_TEXINFOS = index.texi
index_TEXINFOS = guidance.texi api/index.texi version-history.texi
version-history.texi: $(top_srcdir)/NEWS
$(AM_V_GEN)$(GUILE) $(top_srcdir)/build-aux/news-to-texi.scm $< > $@
API_SOURCES = \
$(top_srcdir)/safsaf.scm \
$(top_srcdir)/safsaf/utils.scm \
$(top_srcdir)/safsaf/templating.scm \
$(top_srcdir)/safsaf/response-helpers.scm \
$(top_srcdir)/safsaf/params.scm \
$(top_srcdir)/safsaf/handler-wrappers/logging.scm \
$(top_srcdir)/safsaf/handler-wrappers/security-headers.scm \
$(top_srcdir)/safsaf/handler-wrappers/cors.scm \
$(top_srcdir)/safsaf/handler-wrappers/csrf.scm \
$(top_srcdir)/safsaf/handler-wrappers/exceptions.scm \
$(top_srcdir)/safsaf/handler-wrappers/sessions.scm \
$(top_srcdir)/safsaf/handler-wrappers/trailing-slash.scm \
$(top_srcdir)/safsaf/handler-wrappers/max-body-size.scm \
$(top_srcdir)/safsaf/router.scm
html-local: index.html
index.html: index.texi $(index_TEXINFOS)
$(AM_V_GEN)$(MAKEINFO) --css-ref=https://luis-felipe.gitlab.io/texinfo-css/static/css/texinfo-7.css \
--no-split --html -c SHOW_TITLE=true -o $@ $(srcdir)/index.texi
EXTRA_DIST = logo.svg
CLEANFILES = index.html
if HAVE_DOCUMENTA
api/index.texi: $(API_SOURCES)
2026-04-14 10:37:24 +03:00
cd $(top_srcdir) && ./pre-inst-env \
$(DOCUMENTA) api "safsaf.scm safsaf/"
endif