File:  [Local Repository] / gnujdoc / Makerules
Revision 1.9: download - view: text, annotated - select for diffs
Sun Aug 12 07:18:55 2001 UTC (18 years, 1 month ago) by futoshi
Branches: MAIN
CVS tags: HEAD
Add .texinfo.dvi rule.

# General rules for Makefiles -*- Makefile -*-

# Copyright (C) 1999 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>

# This program 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 2, 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 General Public License for more details.

# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.

# We cannot use makeinfo for producing info files, so use our own rule.

CLEANFILES = *.info*

SUFFIXES = .texi .texinfo .info .dvi _toc.html

.texi.info:
	$(EMACS) -batch -no-site-file -l $(top_srcdir)/makeinfo.el $<

.texinfo.info:
	$(EMACS) -batch -no-site-file -l $(top_srcdir)/makeinfo.el $<

.texi.dvi:
	TEX=$(TEX) TEXINPUTS=.:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' \
	  $(TEXI2DVI) $<

.texinfo.dvi:
	TEX=$(TEX) TEXINPUTS=.:$$TEXINPUTS \
	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' \
	  $(TEXI2DVI) $<

%_toc.html: %.texi
	$(TEXI2HTML) -I $(srcdir) -split_chapter $<

%_toc.html: %.texinfo
	$(TEXI2HTML) -I $(srcdir) -split_chapter $<

# Automake does not have HTML support.
.PHONY: html

html: $(HTMLS)

clean-local:
	-rm -f *.html

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>