1998-03-23 05:41:58 +01:00
|
|
|
## Makefile.am for texinfo/emacs.
|
1998-03-24 20:41:43 +01:00
|
|
|
## $Id: Makefile.am,v 1.1.1.2 1998/03/24 18:20:38 law Exp $
|
1998-03-23 05:41:58 +01:00
|
|
|
## Run automake in .. to produce Makefile.in from this.
|
|
|
|
|
1998-03-24 20:41:43 +01:00
|
|
|
info_TEXINFOS = info-stnd.texi info.texi texinfo.txi
|
1998-03-23 05:41:58 +01:00
|
|
|
|
1998-03-24 20:41:43 +01:00
|
|
|
# Use the programs built in our distribution.
|
1998-03-23 05:41:58 +01:00
|
|
|
MAKEINFO = ../makeinfo/makeinfo
|
1998-03-24 20:41:43 +01:00
|
|
|
INSTALL_INFO = ../util/install-info
|
1998-03-23 05:41:58 +01:00
|
|
|
|
|
|
|
# Include our texinfo.tex, not Automake's.
|
|
|
|
EXTRA_DIST = macro.texi userdoc.texi epsf.tex texinfo.tex
|
|
|
|
|
|
|
|
# We try to discover this via configure just to give a better help message.
|
|
|
|
TEXMF = @TEXMF@
|
|
|
|
|
|
|
|
install-data-local:
|
|
|
|
@echo "WARNING: You must install texinfo.tex and epsf.tex manually,"
|
|
|
|
@echo "WARNING: perhaps in $(TEXMF)/tex/texinfo/"
|
|
|
|
@echo "WARNING: and $(TEXMF)/tex/generic/dvips/ respectively."
|
|
|
|
@echo "WARNING: See doc/README for some considerations."
|
|
|
|
|
|
|
|
# Do not create info files for distribution.
|
|
|
|
dist-info:
|
|
|
|
|
|
|
|
# Do not try to build the info files in $(srcdir),
|
|
|
|
# since we don't distribute them.
|
|
|
|
.texi.info:
|
|
|
|
$(MAKEINFO) -I$(srcdir) `echo $< | sed 's,.*/,,'`
|
1998-03-24 20:41:43 +01:00
|
|
|
texinfo: $(srcdir)/texinfo.txi
|
|
|
|
$(MAKEINFO) -I$(srcdir) texinfo.txi
|
1998-03-23 05:41:58 +01:00
|
|
|
|
1998-03-24 20:41:43 +01:00
|
|
|
# Similarly, Do not try to install the info files from $(srcdir).
|
1998-03-23 05:41:58 +01:00
|
|
|
install-info-am: $(INFO_DEPS)
|
|
|
|
@$(NORMAL_INSTALL)
|
|
|
|
$(mkinstalldirs) $(infodir)
|
|
|
|
@for file in $(INFO_DEPS); do \
|
|
|
|
d=.; \
|
|
|
|
for ifile in `cd $$d && echo $$file $$file-[0-9] $$file-[0-9][0-9]`; do \
|
|
|
|
if test -f $$d/$$ifile; then \
|
|
|
|
echo " $(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile"; \
|
|
|
|
$(INSTALL_DATA) $$d/$$ifile $(infodir)/$$ifile; \
|
|
|
|
else : ; fi; \
|
|
|
|
done; \
|
|
|
|
done
|
|
|
|
@$(POST_INSTALL)
|
1998-03-24 20:41:43 +01:00
|
|
|
@if $(SHELL) -c '$(INSTALL_INFO) --version | sed 1q | fgrep -s -v -i debian' >/dev/null 2>&1; then \
|
1998-03-23 05:41:58 +01:00
|
|
|
for file in $(INFO_DEPS); do \
|
1998-03-24 20:41:43 +01:00
|
|
|
echo " $(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/$$file";\
|
|
|
|
$(INSTALL_INFO) --info-dir=$(infodir) $(infodir)/$$file || :;\
|
1998-03-23 05:41:58 +01:00
|
|
|
done; \
|
|
|
|
else : ; fi
|
|
|
|
|
|
|
|
|
1998-03-24 20:41:43 +01:00
|
|
|
# Remove the info files at make distclean.
|
1998-03-23 05:41:58 +01:00
|
|
|
distclean-aminfo:
|
|
|
|
rm -f texinfo texinfo-* info*.info*
|