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.

123 lines
3.2 KiB

25 years ago
25 years ago
25 years ago
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. DESTDIR =
  15. # Programs used by "make":
  16. RM = rm -f
  17. MKDIR = mkdir -p
  18. @SET_MAKE@
  19. # Programs used by "make" if you have changed the documentation files:
  20. TEX = tex
  21. TEXI2DVI = texi2dvi
  22. DVIPS = dvips -D600
  23. MAKEINFO = LANGUAGE= makeinfo
  24. TEXI2HTML = texi2html
  25. EMACS = emacs
  26. # Programs used by "make install":
  27. INSTALL = @INSTALL@
  28. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  29. INSTALL_DATA = @INSTALL_DATA@
  30. #### End of system configuration section. ####
  31. PACKAGE = cln
  32. SHELL = /bin/sh
  33. VPATH = $(srcdir)
  34. all : info dvi ps html
  35. info : $(srcdir)/$(PACKAGE).info
  36. $(srcdir)/$(PACKAGE).info : $(srcdir)/$(PACKAGE).texi
  37. cd $(srcdir) && $(MAKEINFO) --no-split $(PACKAGE).texi
  38. $(srcdir)/$(PACKAGE).texi : $(srcdir)/$(PACKAGE).tex
  39. cp $< $@
  40. $(EMACS) -batch $@ -load addnodes.el -f save-buffer
  41. mv $@ $@~
  42. sed -e 's,@detailmenu,,g' -e 's,@end detailmenu,,g' < $@~ > $@
  43. $(RM) $@~
  44. dvi : $(srcdir)/$(PACKAGE).dvi
  45. $(srcdir)/$(PACKAGE).dvi : $(srcdir)/$(PACKAGE).texi
  46. cd $(srcdir) && $(TEXI2DVI) $(PACKAGE).texi
  47. ps : $(srcdir)/$(PACKAGE).ps
  48. $(srcdir)/$(PACKAGE).ps : $(srcdir)/$(PACKAGE).dvi
  49. $(DVIPS) -o $@ $<
  50. html : $(PACKAGE).html $(PACKAGE)_toc.html
  51. $(PACKAGE).html : $(srcdir)/$(PACKAGE).texi
  52. cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -monolithic $(PACKAGE).texi
  53. $(PACKAGE)_toc.html : $(srcdir)/$(PACKAGE).texi
  54. cd $(srcdir) && $(TEXI2HTML) -expandinfo -number -split_chapter $(PACKAGE).texi
  55. install : all installdirs force
  56. $(INSTALL_DATA) $(srcdir)/$(PACKAGE).info $(DESTDIR)$(infodir)/$(PACKAGE).info
  57. @if (install-info --version && \
  58. install-info --version 2>&1 | sed 1q | fgrep -i -v debian) >/dev/null 2>&1; then \
  59. echo " install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$(PACKAGE).info";\
  60. install-info --info-dir=$(DESTDIR)$(infodir) $(DESTDIR)$(infodir)/$(PACKAGE).info || :;\
  61. else : ; fi
  62. $(INSTALL_DATA) $(srcdir)/$(PACKAGE)_*.html $(DESTDIR)$(htmldir)
  63. $(INSTALL_DATA) $(srcdir)/$(PACKAGE).dvi $(DESTDIR)$(dvidir)/$(PACKAGE).dvi
  64. installdirs : force
  65. $(MKDIR) $(DESTDIR)$(datadir)
  66. $(MKDIR) $(DESTDIR)$(infodir)
  67. $(MKDIR) $(DESTDIR)$(htmldir)
  68. $(MKDIR) $(DESTDIR)$(dvidir)
  69. uninstall : force
  70. @if (install-info --version && \
  71. install-info --version 2>&1 | sed 1q | fgrep -i -v debian) >/dev/null 2>&1; then \
  72. echo " install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$(PACKAGE).info"; \
  73. install-info --info-dir=$(DESTDIR)$(infodir) --remove $(DESTDIR)$(infodir)/$(PACKAGE).info; \
  74. else :; fi
  75. $(RM) $(DESTDIR)$(infodir)/$(PACKAGE).info
  76. $(RM) $(DESTDIR)$(htmldir)/$(PACKAGE)_*.html
  77. $(RM) $(DESTDIR)$(dvidir)/$(PACKAGE).dvi
  78. check : all
  79. mostlyclean : clean
  80. clean : force
  81. $(RM) *~ *.aux *.toc *.cp *.fn *.ky *.pg *.tp *.vr *.my *.mys *.log core
  82. distclean : clean
  83. $(RM) Makefile
  84. maintainer-clean : distclean
  85. $(RM) *.info *.dvi *.ps *.html
  86. if [ -f $(PACKAGE).tex ] ; then $(RM) $(PACKAGE).texi ; fi
  87. force :