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

    1: # General rules for Makefiles -*- Makefile -*-
    2: 
    3: # Copyright (C) 1999 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>
    4: 
    5: # This program is free software; you can redistribute it and/or modify
    6: # it under the terms of the GNU General Public License as published by
    7: # the Free Software Foundation; either version 2, or (at your option)
    8: # any later version.
    9: 
   10: # This program is distributed in the hope that it will be useful,
   11: # but WITHOUT ANY WARRANTY; without even the implied warranty of
   12: # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   13: # GNU General Public License for more details.
   14: 
   15: # You should have received a copy of the GNU General Public License
   16: # along with this program; if not, write to the Free Software
   17: # Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
   18: # 02111-1307, USA.
   19: 
   20: # We cannot use makeinfo for producing info files, so use our own rule.
   21: 
   22: CLEANFILES = *.info*
   23: 
   24: SUFFIXES = .texi .texinfo .info .dvi _toc.html
   25: 
   26: .texi.info:
   27: 	$(EMACS) -batch -no-site-file -l $(top_srcdir)/makeinfo.el $<
   28: 
   29: .texinfo.info:
   30: 	$(EMACS) -batch -no-site-file -l $(top_srcdir)/makeinfo.el $<
   31: 
   32: .texi.dvi:
   33: 	TEX=$(TEX) TEXINPUTS=.:$$TEXINPUTS \
   34: 	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' \
   35: 	  $(TEXI2DVI) $<
   36: 
   37: .texinfo.dvi:
   38: 	TEX=$(TEX) TEXINPUTS=.:$$TEXINPUTS \
   39: 	  MAKEINFO='$(MAKEINFO) -I $(srcdir)' \
   40: 	  $(TEXI2DVI) $<
   41: 
   42: %_toc.html: %.texi
   43: 	$(TEXI2HTML) -I $(srcdir) -split_chapter $<
   44: 
   45: %_toc.html: %.texinfo
   46: 	$(TEXI2HTML) -I $(srcdir) -split_chapter $<
   47: 
   48: # Automake does not have HTML support.
   49: .PHONY: html
   50: 
   51: html: $(HTMLS)
   52: 
   53: clean-local:
   54: 	-rm -f *.html

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