# 
# Makefile.in for etc
#

prefix 		= /usr/local
exec_prefix 	= $(prefix)

srcdir  = .
bindir  = $(exec_prefix)/bin
libdir  = $(exec_prefix)/lib
tooldir = $(libdir)
datadir = $(prefix)/lib

mandir  = $(prefix)/man
man1dir = $(mandir)/man1
man2dir = $(mandir)/man2
man3dir = $(mandir)/man3
man4dir = $(mandir)/man4
man5dir = $(mandir)/man5
man6dir = $(mandir)/man6
man7dir = $(mandir)/man7
man8dir = $(mandir)/man8
man9dir = $(mandir)/man9
infodir = $(prefix)/info

SHELL = /bin/sh

INSTALL 	= install -c
INSTALL_PROGRAM = $(INSTALL)
INSTALL_DATA    = $(INSTALL)

MAKEINFO = makeinfo
TEXI2DVI = texi2dvi

# Where to find texinfo.tex to format documentation with TeX.
TEXIDIR = $(srcdir)/../texinfo

#### Host, target, and site specific Makefile fragments come in here.
###

INFOFILES = configure.info standards.info cfg-paper.info
DVIFILES = configure.dvi standards.dvi cfg-paper.dvi

all:

install:  $(srcdir)/configure.man
	$(INSTALL_DATA) $(srcdir)/configure.man $(man1dir)/configure.1

uninstall:
	cd $(infodir) && rm -f configure.info* standards.info* cfg-paper.info*

info: $(INFOFILES)

install-info: info
	if test ! -f configure.info ; then cd $(srcdir); fi; \
	for i in configure.info* standards.info* cfg-paper.info*; do \
	  $(INSTALL_DATA) $$i $(infodir)/$$i; \
	done

dvi: $(DVIFILES)

configure.info: $(srcdir)/configure.texi
	$(MAKEINFO) -o configure.info $(srcdir)/configure.texi

configure.dvi: $(srcdir)/configure.texi
	TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/configure.texi

standards.info: $(srcdir)/standards.texi
	$(MAKEINFO) -I$(srcdir) -o standards.info $(srcdir)/standards.texi

standards.dvi: $(srcdir)/standards.texi
	TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/standards.texi

cfg-paper.info : $(srcdir)/cfg-paper.texi
	$(MAKEINFO) -o cfg-paper.info $(srcdir)/cfg-paper.texi

cfg-paper.dvi: $(srcdir)/cfg-paper.texi
	TEXINPUTS=$(TEXIDIR):$$TEXINPUTS $(TEXI2DVI) $(srcdir)/cfg-paper.texi


clean:
	rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
	rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs

mostlyclean: clean

distclean:   clean
	rm -f Makefile config.status

realclean:   distclean
	rm -f *.info*

Makefile: $(srcdir)/Makefile.in $(host_makefile_frag) $(target_makefile_frag)
	./config.status

## these last targets are for standards.texi conformance
dist:
check:
installcheck:
TAGS:
