# Makefile for Web2c documentation.

ac_include ../make/paths.make
ac_include ../make/common.make
ac_include ../make/texi.make

info: web2c.info
dvi: web2c.dvi

web2c.info: install.texi ref.txi
all: web2c.info web2c.dvi

##ifdef HOSTNAME
##INSTALL: install.texi
##	$(MAKEINFO) $(one_info) $(MAKEINFO_FLAGS) $< -o $@
##	add-info-toc $@
##doc: info INSTALL
##
##ref.txi: ref.bbl
##	sed -e 's/~/ /g' \
##	    -e 's/\\[-`'\''"c^]//g' \
##	    -e 's/\\emdash */---/g' \
##	    -e 's/\\MF/Metafont/g' \
##	    -e 's/\\METAFONT/METAFONT/g' \
##	    -e 's/\\TUB/TUGboat/g' \
##	    -e 's/\\LaTeX/La@TeX/g' \
##	    -e 's/\\AMSTEX/AMS@TeX/g' \
##	    -e 's/\\AmSTeX/AMS@TeX/g' \
##	    -e 's/\\TeX/@TeX/g' \
##	    -e 's/\\noopsort{[^}]*}//g' \
##	    -e 's/[{}]//g' \
##	    -e 's/@\[/{/g' \
##	    -e 's/@\]/}/g' \
##	    -e 's/@TeX/@TeX{}/g' \
##	$< >$@
##
##ref.bbl: ref.aux texinfo.bst
##	-bibtex ref
##
##ref.aux: ref.tex
##	rm -f ref.bbl
##	tex '\nonstopmode \input ref'
##endif

Makefile: Makefile.in ../config.status
	cd .. && $(SHELL) config.status

install: install-exec install-data
install-exec:
install-data: web2c.info
	$(SHELL) $(top_srcdir)/../mkdirchain $(infodir)
	cd $(srcdir) && for i in web2c.info*; do \
	  $(INSTALL_DATA) $$i $(infodir)/$$i; done
	$(POSTINSTALL)
	if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
	  install-info --info-dir=$(infodir) $(infodir)/web2c.info; \
	else true; fi

check: all

ac_include ../make/clean.make

