Edit

kc3-lang/automake/texinfos.am

Branch :

  • Show log

    Commit

  • Author : Tom Tromey
    Date : 1995-11-17 21:20:40
    Hash : 3aaef34c
    Message : (install-info): Don't cd to srcdir to avoid breaking install-sh Other bug fixes

  • texinfos.am
  • .SUFFIXES: .texi .info .dvi
    
    .texi.info:
    	$(MAKEINFO) -I$(srcdir) $<
    
    .texi.dvi:
    	TEXINPUTS=$(srcdir):$$TEXINPUTS $(TEXI2DVI) $<
    
    info:: $(INFO_DEPS)
    
    dvi:: $(DVIS)
    
    install:: install-info
    
    # FIXME: not sure what to do about install-info program.  We look in
    # `pwd` because there might be a newer file there than in srcdir.
    install-info: $(INFO_DEPS)
    	$(top_srcdir)/mkinstalldirs $(infodir)
    	cd $(srcdir);				\
    	for file in `cd $(srcdir); echo *.info*`; do \
    	  if test -f $$file; then		\
    	    d=.;				\
    	  else					\
    	    d=$(srcdir);			\
    	  fi;					\
    	  $(INSTALL_DATA) $$d/$$file $(infodir)/$$file; \
    	  if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
    	    install-info --infodir=$(infodir) $$d/$$file; \
    	  else					\
    	    true;				\
    	  fi;					\
    	done
    
    uninstall:: uninstall-info
    
    uninstall-info:
    	cd $(srcdir); for file in *.info*; do
    	  rm -f $(infodir)/$$file; \
    	done