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.

111 lines
2.5 KiB

25 years ago
25 years ago
25 years ago
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 installdirs force
  54. $(INSTALL_DATA) $(srcdir)/$(PACKAGE).info $(infodir)/$(PACKAGE).info
  55. $(INSTALL_DATA) $(srcdir)/$(PACKAGE)_*.html $(htmldir)
  56. $(INSTALL_DATA) $(srcdir)/$(PACKAGE).dvi $(dvidir)/$(PACKAGE).dvi
  57. installdirs : force
  58. if [ ! -d $(datadir) ] ; then mkdir $(datadir) ; fi
  59. if [ ! -d $(infodir) ] ; then mkdir $(infodir) ; fi
  60. if [ ! -d $(htmldir) ] ; then mkdir $(htmldir) ; fi
  61. if [ ! -d $(dvidir) ] ; then mkdir $(dvidir) ; fi
  62. uninstall : force
  63. $(RM) $(infodir)/$(PACKAGE).info
  64. $(RM) $(htmldir)/$(PACKAGE)_*.html
  65. $(RM) $(dvidir)/$(PACKAGE).dvi
  66. check : all
  67. mostlyclean : clean
  68. clean : force
  69. $(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.mys *.log core
  70. distclean : clean
  71. $(RM) Makefile
  72. maintainer-clean : distclean
  73. $(RM) *.info *.dvi *.ps *.html
  74. if [ -f $(PACKAGE).tex ] ; then $(RM) $(PACKAGE).texi ; fi
  75. force :