mirror of
git://git.gnu.org.ua/imprimatur.git
synced 2025-04-26 00:29:54 +03:00

* .gitignore: Add Makedoc * Makedoc.am: New file. * Makefile.am [IMPRIMATUR_COND_MAKEDOC]: Provide a set of shortcuts for make -f Makedoc. * imprimatur.m4 (IMPRIMATUR_INIT): Create Makedoc file if `makedoc' option is given. New option dist-info. * imprimatur.texi: Update. * README: Update.
65 lines
2 KiB
Text
65 lines
2 KiB
Text
# This file is part of Imprimatur.
|
|
# Copyright (C) 2011 Sergey Poznyakoff
|
|
#
|
|
# Imprimatur is free software; you can redistribute it and/or modify
|
|
# it under the terms of the GNU General Public License as published by
|
|
# the Free Software Foundation; either version 3, or (at your option)
|
|
# any later version.
|
|
#
|
|
# Imprimatur 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 General Public License for more details.
|
|
#
|
|
# You should have received a copy of the GNU General Public License
|
|
# along with Imprimatur. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
info_TEXINFOS=imprimatur.texi
|
|
imprimatur_TEXINFOS=rendition.texi fdl.texi
|
|
|
|
TEXI2DVI=texi2dvi -t '@set $(RENDITION)' -E
|
|
|
|
clean-local:
|
|
@rm -rf manual
|
|
|
|
AM_MAKEINFOFLAGS = @IMPRIMATUR_MAKEINFOFLAGS@
|
|
imprimatur_INPUT=$(info_TEXINFOS) $(imprimatur_TEXINFOS)
|
|
include imprimatur.mk
|
|
CHECK_DOCS=$(top_srcdir)/@IMPRIMATUR_MODULE_DIR@/check-docs.sh
|
|
|
|
check-rules:
|
|
@$(CHECK_DOCS) "Makefile rules" \
|
|
'/^imprimatur-.*:/s/:.*//p' \
|
|
's/@deffn {Makefile Rule} *//p' \
|
|
imprimatur.mk -- \
|
|
$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \
|
|
$(info_TEXINFOS)
|
|
|
|
check-macros:
|
|
@$(CHECK_DOCS) "Texinfo macros" \
|
|
'/@macro/s/@macro *\([-a-zA-Z][-a-zA-Z0-9]*\).*/\1/p' \
|
|
'/@defmac/s/@defmac *\([-a-zA-Z][-a-zA-Z0-9]*\).*/\1/p' \
|
|
rendition.texi -- \
|
|
$(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) -I $(srcdir) -E - \
|
|
$(info_TEXINFOS)
|
|
|
|
check-docs-am: imprimatur-basic-checks check-rules check-macros
|
|
|
|
check-docs:
|
|
$(MAKE) -k check-docs-am
|
|
|
|
GENDOCS=gendocs.sh
|
|
|
|
.PHONY: manual
|
|
manual:
|
|
TEXINPUTS=$(srcdir):$(top_srcdir)/build-aux:$(TEXINPUTS) \
|
|
MAKEINFO="$(MAKEINFO) $(MAKEINFOFLAGS) $(AM_MAKEINFOFLAGS)" \
|
|
TEXI2DVI="$(TEXI2DVI)" \
|
|
TEXI2HTML="$(TEXI2HTML)" \
|
|
GENDOCS_TEMPLATE_DIR="$(GENDOCS_TEMPLATE_DIR)" \
|
|
$(GENDOCS) --texi2html imprimatur 'Imprimatur manual'
|
|
|
|
manual.tar.bz2: manual
|
|
tar cfj manual.tar.bz2 manual
|
|
|
|
man-tar: manual.tar.bz2
|