You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
2.7 KiB

25 years ago
  1. # Makefile for cln/doc
  2. #### Start of system configuration section. ####
  3. # Directories used by "make":
  4. srcdir = @srcdir@
  5. # Directories used by "make install":
  6. prefix = @prefix@
  7. local_prefix = /usr/local
  8. exec_prefix = @exec_prefix@
  9. datadir = @datadir@
  10. infodir = @infodir@
  11. mandir = @mandir@
  12. htmldir = $(datadir)/html
  13. dvidir = $(datadir)/dvi
  14. # Programs used by "make":
  15. RM = rm -f
  16. @SET_MAKE@
  17. # Programs used by "make" if you have changed the documentation files:
  18. TEX = tex
  19. TEXI2DVI = texi2dvi
  20. DVIPS = dvips -D600
  21. MAKEINFO = LANGUAGE= makeinfo
  22. TEXI2HTML = texi2html
  23. EMACS = emacs
  24. # Programs used by "make install":
  25. INSTALL = @INSTALL@
  26. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  27. INSTALL_DATA = @INSTALL_DATA@
  28. #### End of system configuration section. ####
  29. PACKAGE = cln
  30. SHELL = /bin/sh
  31. VPATH = $(srcdir)
  32. all : info dvi ps html
  33. info : $(srcdir)/$(PACKAGE).info
  34. $(srcdir)/$(PACKAGE).info : $(srcdir)/$(PACKAGE).texi
  35. cd $(srcdir) && $(MAKEINFO) --no-split $(PACKAGE).texi
  36. $(srcdir)/$(PACKAGE).texi : $(srcdir)/$(PACKAGE).tex
  37. cp $< $@
  38. $(EMACS) -batch $@ -load addnodes.el -f save-buffer
  39. mv $@ $@~
  40. sed -e 's,@detailmenu,,g' -e 's,@end detailmenu,,g' < $@~ > $@
  41. $(RM) $@~
  42. dvi : $(srcdir)/$(PACKAGE).dvi
  43. $(srcdir)/$(PACKAGE).dvi : $(srcdir)/$(PACKAGE).texi
  44. cd $(srcdir) && $(TEXI2DVI) $(PACKAGE).texi
  45. ps : $(srcdir)/$(PACKAGE).ps
  46. $(srcdir)/$(PACKAGE).ps : $(srcdir)/$(PACKAGE).dvi
  47. $(DVIPS) -o $@ $<
  48. html : $(PACKAGE).html $(PACKAGE)_toc.html
  49. $(PACKAGE).html : $(srcdir)/$(PACKAGE).texi
  50. cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -monolithic $(PACKAGE).texi
  51. $(PACKAGE)_toc.html : $(srcdir)/$(PACKAGE).texi
  52. cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -split_chapter $(PACKAGE).texi
  53. install : all force
  54. if [ ! -d $(infodir) ] ; then mkdir $(infodir) ; fi
  55. $(INSTALL_DATA) $(srcdir)/$(PACKAGE).info $(infodir)/$(PACKAGE).info
  56. if [ ! -d $(datadir) ] ; then mkdir $(datadir) ; fi
  57. if [ ! -d $(htmldir) ] ; then mkdir $(htmldir) ; fi
  58. $(INSTALL_DATA) $(srcdir)/$(PACKAGE)_*.html $(htmldir)
  59. if [ ! -d $(dvidir) ] ; then mkdir $(dvidir) ; fi
  60. $(INSTALL_DATA) $(srcdir)/$(PACKAGE).dvi $(dvidir)/$(PACKAGE).dvi
  61. installdirs : force
  62. if [ ! -d $(infodir) ] ; then mkdir $(infodir) ; fi
  63. if [ ! -d $(datadir) ] ; then mkdir $(datadir) ; fi
  64. if [ ! -d $(htmldir) ] ; then mkdir $(htmldir) ; fi
  65. if [ ! -d $(dvidir) ] ; then mkdir $(dvidir) ; fi
  66. uninstall : force
  67. $(RM) $(infodir)/$(PACKAGE).info
  68. $(RM) $(htmldir)/$(PACKAGE)_*.html
  69. $(RM) $(dvidir)/$(PACKAGE).dvi
  70. check : all
  71. mostlyclean : clean
  72. clean : force
  73. $(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.log core
  74. distclean : clean
  75. $(RM) Makefile
  76. maintainer-clean : distclean
  77. $(RM) *.info *.dvi *.ps *.html
  78. if [ -f $(PACKAGE).tex ] ; then $(RM) $(PACKAGE).texi ; fi
  79. force :