OSDN Git Service

Try test commit again. This time get everything.
[pf3gnuchains/gcc-fork.git] / texinfo / doc / Makefile.am
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.
4
5 info_TEXINFOS = info-stnd.texi info.texi texinfo.texi
6
7 # Use the makeinfo built in our distribution.
8 MAKEINFO = ../makeinfo/makeinfo
9
10 # Include our texinfo.tex, not Automake's.
11 EXTRA_DIST = macro.texi userdoc.texi epsf.tex texinfo.tex
12
13 # We try to discover this via configure just to give a better help message.
14 TEXMF = @TEXMF@
15
16 install-data-local:
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."
21
22 # Do not create info files for distribution.
23 dist-info:
24
25 # Do not try to build the info files in $(srcdir),
26 # since we don't distribute them.
27 .texi.info:
28         $(MAKEINFO) -I$(srcdir) `echo $< | sed 's,.*/,,'`
29 texinfo: $(srcdir)/texinfo.texi
30         $(MAKEINFO) -I$(srcdir) texinfo.texi
31
32 # Do not try to install them from $(srcdir).
33 install-info-am: $(INFO_DEPS)
34         @$(NORMAL_INSTALL)
35         $(mkinstalldirs) $(infodir)
36         @for file in $(INFO_DEPS); do \
37           d=.; \
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; \
42             else : ; fi; \
43           done; \
44         done
45         @$(POST_INSTALL)
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 || :;\
50           done; \
51         else : ; fi
52
53
54 # Remove them at make distclean.
55 distclean-aminfo:
56         rm -f texinfo texinfo-* info*.info*