GNUmakefile 1.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. #
  2. # Makefile
  3. #
  4. # This file is the Makefile for graphlet/doc.
  5. #
  6. #------------------------------------------
  7. #
  8. # $Source: /home/br/CVS/graphlet/doc/GNUmakefile,v $
  9. # $Author: himsolt $
  10. # $Revision: 1.2 $
  11. # $Date: 1999/03/05 20:39:10 $
  12. # $Locker: $
  13. # $State: Exp $
  14. #
  15. #------------------------------------------
  16. #
  17. # (C) University of Passau 1995-1999, graphlet project
  18. #
  19. GRAPHLET_BASE_DIR=..
  20. SUBDIRS=
  21. include $(GRAPHLET_BASE_DIR)/lib/graphlet/config/common
  22. MANUAL = \
  23. Graphscript Cpp GML Packages
  24. TEXFILES = \
  25. Cpp \
  26. CodingStandards \
  27. CodingStandards-C++ \
  28. CodingStandards-General \
  29. Config \
  30. GML \
  31. GML-Introduction \
  32. GML-Definition \
  33. GML-Keys \
  34. GML-ISO \
  35. Packages
  36. it all: dvi ps
  37. .PHONY: dvi ps
  38. dvi: $(foreach file,$(MANUAL),$(file).dvi)
  39. ps: $(foreach file,$(MANUAL),$(file).ps)
  40. #
  41. # Configure
  42. #
  43. .PHONY: configure
  44. configure:
  45. #
  46. # Create DVI from LaTeX sources. There are two options: dvi and dvi2.
  47. #
  48. .SUFFIXES: .tex .dvi .ps
  49. LATEX_RERUN_MESSAGE="Rerun to get cross-references right."
  50. .tex.dvi:
  51. ifdef LATEX
  52. $(LATEX) $<
  53. while grep $(LATEX_RERUN_MESSAGE) $(basename $<).log ; do \
  54. $(LATEX) $< ; \
  55. done
  56. else
  57. echo "Cannot make DVI file because LaTeX is not configured"
  58. endif
  59. .dvi.ps:
  60. ifdef DVIPS
  61. $(DVIPS) $(DVIPSFLAGS) $<
  62. else
  63. echo "Cannot make PostScript file because dvips is not configured"
  64. endif
  65. #
  66. # LaTeX clean
  67. #
  68. clean.local::
  69. $(RM) $(foreach file,$(TEXFILES),$(file).log $(file).dvi $(file).aux $(file).toc $(file).lof $(file).lot $(file).idx $(file).ind $(file).ilg $(file).glo $(file).bbl $(file).bib $(file).blg $(file).ps)
  70. ##########################################
  71. #
  72. # Set emacs variables
  73. #
  74. ##########################################
  75. # ;;; Local Variables: ***
  76. # ;;; mode: makefile ***
  77. # ;;; End: ***