#
#       Copyright (C) 1997 Claus Heine.
#
# 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; see the file COPYING.  If not, write to
# the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
#
# $Source: /homes/cvs/ftape-stacked/Doc/info/Makefile,v $
# $Revision: 1.13 $
# $Date: 1997/09/19 15:07:26 $
#
#      Makefile for the TeXinfo documentation for ftape/sftape/zftape
#
TOPDIR = ../..
#
# all other configuration is in $(TOPDIR)/MCONFIG:
#
include $(TOPDIR)/MCONFIG
#
#  These are also set in ../Doc/Makefile
#
SRCDIR   = ../texi
INFOSRC  = ftape.texi
INFOTARGET = ftape.info
INFODEP  = Bugs.texi Copying.texi Documentation.texi Indices.texi 	\
	   Installation.texi Introduction.texi QuickInstall.texi 	\
	   Loading.texi Testing.texi Implementation.texi ftape.texi
INFODEPSRC = $(INFODEP:%=$(SRCDIR)/%)

all: info

info: $(INFOTARGET)

$(INFODEP): %: $(SRCDIR)/% $(SRCDIR)/$(INFOSRC)
	ln -sf $(SRCDIR)/$@ .

$(INFOTARGET): $(INFODEPSRC)
	make realstuff

realstuff:  $(INFODEP)
	makeinfo $(INFOSRC)

ifdef INFODIR
install: info
	$(INSTALL) -m 0755 -d $(INFODIR)
	$(INSTALL) -m 0644 ftape.info* $(INFODIR)
	-install-info --info-file=ftape.info --info-dir=$(INFODIR)

uninstall:
	-rm -f $(INFODIR)/ftape.info*
	-install-info --delete --info-file=ftape.info --info-dir=$(INFODIR)
else
install uninstall:
endif

dep:

clean:
	rm -f core *.texi

realclean: clean
	rm -f ftape.info*

.PHONY: all info install install.doc uninstall dep clean realclean realstuff
