view man/internals/Makefile @ 388:aabb7f5b1c81 r21-2-9

Import from CVS: tag r21-2-9
author cvs
date Mon, 13 Aug 2007 11:09:42 +0200
parents f53b5ca2e663
children
line wrap: on
line source

# Makefile for the XEmacs Internals Manual.

# This file is part of XEmacs.

# XEmacs 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.

# XEmacs 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 XEmacs; see the file COPYING.  If not, write to
# the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
# Boston, MA 02111-1307, USA.

VERSION=1.0
NAME=internals
manual = xemacs-internals-manual-19-$(VERSION)

TEXI2DVI = texi2dvi
MAKEINFO = makeinfo

# Uncomment this line for permuted index.
# permuted_index = 1 

# List of all the texinfo files in the manual:

srcs = internals.texi index.unperm index.perm

all : info
info : ../../info/$(NAME).info

../../info/$(NAME).info: $(srcs) index.texi
	@echo "Expect a coredump if you are not using makeinfo 1.68 (or later)"
	$(MAKEINFO) $(NAME).texi
	@rm -f core

dvi : $(NAME).dvi

$(NAME).dvi: $(srcs) index.texi
	# Avoid losing old contents of aux file entirely.
	-mv $(NAME).aux $(NAME).oaux
	# First shot to define xrefs:
	$(TEX) $(NAME).texi
	if [ a${permuted_index} != a ]; \
	then ./permute-index && mv permuted.fns $(NAME).fns; \
	else texindex $(NAME).??; \
	fi
	$(TEX) $(NAME).texi

index.texi:
	if [ a${permuted_index} != a ]; \
	then ln -s index.perm   index.texi; \
	else ln -s index.unperm index.texi; \
	fi

.PHONY: mostlyclean clean distclean realclean extraclean
mostlyclean:
	rm -f *.toc *.aux *.log *.cp *.cps *.fn *.fns *.tp *.tps \
              *.vr *.vrs *.pg *.pgs *.ky *.kys
clean: mostlyclean
	rm -f *.dvi *.ps make.out core index.texi
distclean:  clean
realclean:  clean
extraclean: clean
	-rm -f *~ \#*