1## Makefile.am for texinfo/emacs. 2## $Id: Makefile.am,v 1.2 1999/01/11 16:38:02 espie Exp $ 3## Run automake in .. to produce Makefile.in from this. 4 5info_TEXINFOS = info-stnd.texi info.texi texinfo.txi 6 7# Use the programs built in our distribution. 8MAKEINFO = ../makeinfo/makeinfo 9INSTALL_INFO = ../util/install-info 10 11# Include our texinfo.tex, not Automake's. 12EXTRA_DIST = macro.texi userdoc.texi epsf.tex texinfo.tex 13 14# We try to discover this via configure just to give a better help message. 15TEXMF = @TEXMF@ 16 17install-data-local: 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." 22 23# Do not create info files for distribution. 24dist-info: 25 26# Do not try to build the info files in $(srcdir), 27# since we don't distribute them. 28.texi.info: 29 $(MAKEINFO) -I$(srcdir) `echo $< | sed 's,.*/,,'` 30texinfo: $(srcdir)/texinfo.txi 31 $(MAKEINFO) -I$(srcdir) texinfo.txi 32 33# Similarly, Do not try to install the info files from $(srcdir). 34install-info-am: $(INFO_DEPS) 35 @$(NORMAL_INSTALL) 36 $(mkinstalldirs) $(infodir) 37 @for file in $(INFO_DEPS); do \ 38 d=.; \ 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; \ 43 else : ; fi; \ 44 done; \ 45 done 46 @$(POST_INSTALL) 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 || :;\ 51 done; \ 52 else : ; fi 53 54 55# Remove the info files at make distclean. 56distclean-aminfo: 57 rm -f texinfo texinfo-* info*.info* 58