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