* tramp.texi (Alternative Syntax): Remove chapter.
[bpt/emacs.git] / doc / misc / Makefile.in
index 6618e12..30fc495 100644 (file)
@@ -17,7 +17,7 @@
 # You should have received a copy of the GNU General Public License
 # along with GNU Emacs.  If not, see <http://www.gnu.org/licenses/>.
 
-SHELL = /bin/sh
+SHELL = @SHELL@
 
 # Where to find the source code.  $(srcdir) will be the man-aux
 # subdirectory of the source tree.  This is
@@ -59,7 +59,11 @@ INSTALL_DATA = @INSTALL_DATA@
 MAKEINFO = @MAKEINFO@
 MAKEINFO_OPTS = --force -I$(emacsdir)
 
-INFO_TARGETS = ada-mode auth autotype bovine calc ccmode cl \
+## On MS Windows, efaq-w32; otherwise blank.
+DOCMISC_W32 = @DOCMISC_W32@
+
+## Info files to build and install on all platforms.
+INFO_COMMON = ada-mode auth autotype bovine calc ccmode cl \
        dbus dired-x ebrowse ede ediff edt eieio \
        emacs-mime epa erc ert eshell eudc efaq \
        flymake forms gnus emacs-gnutls htmlfontify idlwave ido info.info \
@@ -68,237 +72,23 @@ INFO_TARGETS = ada-mode auth autotype bovine calc ccmode cl \
        sc semantic ses sieve smtpmail speedbar srecode todo-mode tramp \
        url vip viper widget wisent woman
 
-DVI_TARGETS = \
-       ada-mode.dvi \
-       auth.dvi \
-       autotype.dvi \
-       bovine.dvi \
-       calc.dvi \
-       cc-mode.dvi \
-       cl.dvi \
-       dbus.dvi \
-       dired-x.dvi \
-       ebrowse.dvi \
-       ede.dvi \
-       ediff.dvi \
-       edt.dvi \
-       eieio.dvi \
-       emacs-mime.dvi \
-       epa.dvi \
-       erc.dvi \
-       ert.dvi \
-       eshell.dvi \
-       eudc.dvi \
-       faq.dvi \
-       flymake.dvi \
-       forms.dvi \
-       gnus.dvi \
-       emacs-gnutls.dvi \
-       htmlfontify.dvi \
-       idlwave.dvi \
-       ido.dvi \
-       info.dvi \
-       mairix-el.dvi \
-       message.dvi \
-       mh-e.dvi \
-       newsticker.dvi \
-       nxml-mode.dvi \
-       org.dvi \
-       pcl-cvs.dvi \
-       pgg.dvi \
-       rcirc.dvi \
-       reftex.dvi \
-       remember.dvi \
-       sasl.dvi \
-       sc.dvi \
-       semantic.dvi \
-       ses.dvi \
-       sieve.dvi \
-       smtpmail.dvi \
-       speedbar.dvi \
-       srecode.dvi \
-       todo-mode.dvi \
-       tramp.dvi \
-       url.dvi \
-       vip.dvi \
-       viper.dvi \
-       widget.dvi \
-       wisent.dvi \
-       woman.dvi
-
-HTML_TARGETS = \
-       ada-mode.html \
-       auth.html \
-       autotype.html \
-       bovine.html \
-       calc.html \
-       cc-mode.html \
-       cl.html \
-       dbus.html \
-       dired-x.html \
-       ebrowse.html \
-       ede.html \
-       ediff.html \
-       edt.html \
-       eieio.html \
-       emacs-mime.html \
-       epa.html \
-       erc.html \
-       ert.html \
-       eshell.html \
-       eudc.html \
-       faq.html \
-       flymake.html \
-       forms.html \
-       gnus.html \
-       emacs-gnutls.html \
-       htmlfontify.html \
-       idlwave.html \
-       ido.html \
-       info.html \
-       mairix-el.html \
-       message.html \
-       mh-e.html \
-       newsticker.html \
-       nxml-mode.html \
-       org.html \
-       pcl-cvs.html \
-       pgg.html \
-       rcirc.html \
-       reftex.html \
-       remember.html \
-       sasl.html \
-       sc.html \
-       semantic.html \
-       ses.html \
-       sieve.html \
-       smtpmail.html \
-       speedbar.html \
-       srecode.html \
-       todo-mode.html \
-       tramp.html \
-       url.html \
-       vip.html \
-       viper.html \
-       widget.html \
-       wisent.html \
-       woman.html
-
-PDF_TARGETS = \
-       ada-mode.pdf \
-       auth.pdf \
-       autotype.pdf \
-       bovine.pdf \
-       calc.pdf \
-       cc-mode.pdf \
-       cl.pdf \
-       dbus.pdf \
-       dired-x.pdf \
-       ebrowse.pdf \
-       ede.pdf \
-       ediff.pdf \
-       edt.pdf \
-       eieio.pdf \
-       emacs-mime.pdf \
-       epa.pdf \
-       erc.pdf \
-       ert.pdf \
-       eshell.pdf \
-       eudc.pdf \
-       faq.pdf \
-       flymake.pdf \
-       forms.pdf \
-       gnus.pdf \
-       htmlfontify.pdf \
-       emacs-gnutls.pdf \
-       idlwave.pdf \
-       ido.pdf \
-       info.pdf \
-       mairix-el.pdf \
-       message.pdf \
-       mh-e.pdf \
-       newsticker.pdf \
-       nxml-mode.pdf \
-       org.pdf \
-       pcl-cvs.pdf \
-       pgg.pdf \
-       rcirc.pdf \
-       reftex.pdf \
-       remember.pdf \
-       sasl.pdf \
-       sc.pdf \
-       semantic.pdf \
-       ses.pdf \
-       sieve.pdf \
-       smtpmail.pdf \
-       speedbar.pdf \
-       srecode.pdf \
-       todo-mode.pdf \
-       tramp.pdf \
-       url.pdf \
-       vip.pdf \
-       viper.pdf \
-       widget.pdf \
-       wisent.pdf \
-       woman.pdf
-
-PS_TARGETS = \
-       ada-mode.ps \
-       auth.ps \
-       autotype.ps \
-       bovine.ps \
-       calc.ps \
-       cc-mode.ps \
-       cl.ps \
-       dbus.ps \
-       dired-x.ps \
-       ebrowse.ps \
-       ede.ps \
-       ediff.ps \
-       edt.ps \
-       eieio.ps \
-       emacs-mime.ps \
-       epa.ps \
-       erc.ps \
-       ert.ps \
-       eshell.ps \
-       eudc.ps \
-       faq.ps \
-       flymake.ps \
-       forms.ps \
-       gnus.ps \
-       htmlfontify.ps \
-       emacs-gnutls.ps \
-       idlwave.ps \
-       ido.ps \
-       info.ps \
-       mairix-el.ps \
-       message.ps \
-       mh-e.ps \
-       newsticker.ps \
-       nxml-mode.ps \
-       org.ps \
-       pcl-cvs.ps \
-       pgg.ps \
-       rcirc.ps \
-       reftex.ps \
-       remember.ps \
-       sasl.ps \
-       sc.ps \
-       semantic.ps \
-       ses.ps \
-       sieve.ps \
-       smtpmail.ps \
-       speedbar.ps \
-       srecode.ps \
-       todo-mode.ps \
-       tramp.ps \
-       url.ps \
-       vip.ps \
-       viper.ps \
-       widget.ps \
-       wisent.ps \
-       woman.ps
+## Info files to install on current platform.
+INFO_INSTALL = $(INFO_COMMON) $(DOCMISC_INFO_W32)
+
+## Info files to build on current platform.
+## This is all of them, even though they might not all get installed,
+## because the info files are pre-built in release tarfiles.
+INFO_TARGETS = $(INFO_COMMON) efaq-w32
+
+# There are some naming differences between the info targets and the other
+# targets, so let's resolve them here.
+TARGETS_1 = $(INFO_INSTALL:ccmode=cc-mode)
+TARGETS = $(TARGETS_1:info.info=info)
+
+DVI_TARGETS  = $(TARGETS:=.dvi)
+HTML_TARGETS = $(TARGETS:=.html)
+PDF_TARGETS  = $(TARGETS:=.pdf)
+PS_TARGETS   = $(TARGETS:=.ps)
 
 TEXI2DVI = texi2dvi
 TEXI2PDF = texi2pdf
@@ -326,13 +116,9 @@ info: $(INFO_TARGETS)
 ## Used by top-level Makefile.
 ## Base file names of output info files.
 echo-info:
-       @echo "$(INFO_TARGETS) " | \
+       @echo "$(INFO_INSTALL) " | \
          sed -e 's|[^ ]*/||g' -e 's/\.info//g' -e "s/  */$(INFO_EXT) /g"
 
-# please modify this for all the web manual targets
-webhack: clean
-       $(MAKE) pdf MAKEINFO_OPTS="-DWEBHACKDEVEL $(MAKEINFO_OPTS)"
-
 dvi: $(DVI_TARGETS)
 
 html: $(HTML_TARGETS)
@@ -503,6 +289,31 @@ edt.pdf: $(edt_deps)
 edt.html: $(edt_deps)
        $(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ ${srcdir}/edt.texi
 
+## No gfdl dependency.
+efaq_deps = ${srcdir}/efaq.texi $(emacsdir)/emacsver.texi
+efaq : $(buildinfodir)/efaq$(INFO_EXT)
+$(buildinfodir)/efaq$(INFO_EXT): $(efaq_deps)
+       $(mkinfodir)
+       $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/efaq.texi
+efaq.dvi: $(efaq_deps)
+       $(ENVADD) $(TEXI2DVI) ${srcdir}/efaq.texi
+efaq.pdf: $(efaq_deps)
+       $(ENVADD) $(TEXI2PDF) ${srcdir}/efaq.texi
+efaq.html: $(efaq_deps)
+       $(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ ${srcdir}/efaq.texi
+
+efaq_w32_deps = ${srcdir}/efaq-w32.texi $(emacsdir)/emacsver.texi
+efaq-w32 : $(buildinfodir)/efaq-w32$(INFO_EXT)
+$(buildinfodir)/efaq-w32$(INFO_EXT): $(efaq_w32_deps)
+       $(mkinfodir)
+       $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/efaq-w32.texi
+efaq-w32.dvi: $(efaq_w32_deps)
+       $(ENVADD) $(TEXI2DVI) ${srcdir}/efaq-w32.texi
+efaq-w32.pdf: $(efaq_w32_deps)
+       $(ENVADD) $(TEXI2PDF) ${srcdir}/efaq-w32.texi
+efaq-w32.html: $(efaq_w32_deps)
+       $(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ ${srcdir}/efaq-w32.texi
+
 eieio_deps = ${srcdir}/eieio.texi ${gfdl}
 eieio : $(buildinfodir)/eieio$(INFO_EXT)
 $(buildinfodir)/eieio$(INFO_EXT): $(eieio_deps)
@@ -599,19 +410,6 @@ eudc.pdf: $(eudc_deps)
 eudc.html: $(eudc_deps)
        $(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ ${srcdir}/eudc.texi
 
-## No gfdl dependency.
-faq_deps = ${srcdir}/faq.texi $(emacsdir)/emacsver.texi
-efaq : $(buildinfodir)/efaq$(INFO_EXT)
-$(buildinfodir)/efaq$(INFO_EXT): $(faq_deps)
-       $(mkinfodir)
-       $(MAKEINFO) $(MAKEINFO_OPTS) $(INFO_OPTS) -o $@ ${srcdir}/faq.texi
-faq.dvi: $(faq_deps)
-       $(ENVADD) $(TEXI2DVI) ${srcdir}/faq.texi
-faq.pdf: $(faq_deps)
-       $(ENVADD) $(TEXI2PDF) ${srcdir}/faq.texi
-faq.html: $(faq_deps)
-       $(MAKEINFO) $(MAKEINFO_OPTS) $(HTML_OPTS) -o $@ ${srcdir}/faq.texi
-
 flymake_deps = ${srcdir}/flymake.texi ${gfdl}
 flymake : $(buildinfodir)/flymake$(INFO_EXT)
 $(buildinfodir)/flymake$(INFO_EXT): $(flymake_deps)
@@ -1040,6 +838,7 @@ mostlyclean:
 
 clean: mostlyclean
        rm -f $(DVI_TARGETS) $(HTML_TARGETS) $(PDF_TARGETS) $(PS_TARGETS)
+       rm -f efaq-w32.dvi efaq-w32.html efaq-w32.pdf efaq-w32.ps
        rm -f emacs-misc-${version}.tar*
 
 distclean: clean