1 ## Makefile.am for texinfo/emacs.
2 ## $Id: Makefile.am,v 1.1.1.2 1998/03/24 18:20:38 law Exp $
3 ## Run automake in .. to produce Makefile.in from this.
5 info_TEXINFOS = info-stnd.texi info.texi texinfo.txi
7 # Use the programs built in our distribution.
8 MAKEINFO = ../makeinfo/makeinfo
9 INSTALL_INFO = ../util/install-info
11 # Include our texinfo.tex, not Automake's.
12 EXTRA_DIST = macro.texi userdoc.texi epsf.tex texinfo.tex
14 # We try to discover this via configure just to give a better help message.
18 @echo "WARNING: You must install texinfo.tex and epsf.tex manually,"
19 @echo "WARNING: perhaps in $(TEXMF)/tex/texinfo/"
20 @echo "WARNING: and $(TEXMF)/tex/generic/dvips/ respectively."
21 @echo "WARNING: See doc/README for some considerations."
23 # Do not create info files for distribution.
26 # Do not try to build the info files in $(srcdir),
27 # since we don't distribute them.
29 $(MAKEINFO) -I$(srcdir) `echo $< | sed 's,.*/,,'`
30 texinfo: $(srcdir)/texinfo.txi
31 $(MAKEINFO) -I$(srcdir) texinfo.txi
33 # Similarly, Do not try to install the info files from $(srcdir).
34 install-info-am: $(INFO_DEPS)
36 $(mkinstalldirs) $(infodir)
37 @for file in $(INFO_DEPS); do \
39 for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
40 if test -f $$d/$$ifile; then \
41 echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \
42 $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
47 @if $(SHELL) -c '$(INSTALL_INFO) --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
48 for file in $(INFO_DEPS); do \
49 echo " $(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/$$file";\
50 $(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/$$file || :;\
55 # Remove the info files at make distclean.
57 rm -f texinfo texinfo-* info*.info*