Makefile.in 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151
  1. #
  2. # Makefile.in for gnuplot-mode
  3. #
  4. # Based on original Makefile
  5. # by Lars Hecking <lhecking@nmrc.ucc.ie> 1999-02-25
  6. #
  7. # Modified to install .el files along with .elc files
  8. # BR May 17 2002
  9. SHELL = /bin/sh
  10. prefix = @prefix@
  11. datadir = @datadir@
  12. lispdir = @lispdir@
  13. srcdir = @srcdir@
  14. subdir = lisp
  15. top_builddir = .
  16. top_srcdir = @top_srcdir@
  17. @SET_MAKE@
  18. EMACS = @EMACS@
  19. MAKEINFO = @MAKEINFO@
  20. LATEX = latex
  21. DVIPS = dvips
  22. INSTALL = @INSTALL@
  23. INSTALL_DATA = @INSTALL_DATA@
  24. VPATH = @srcdir@
  25. # Command to byte-compile
  26. BYTEC = $(EMACS) -batch -q -no-site-file -l $(srcdir)/dot.el -f batch-byte-compile
  27. ELCS = info-look.elc gnuplot.elc gnuplot-gui.elc
  28. DIST_COMMON = ChangeLog Makefile.dst Makefile.in README aclocal.m4 configure \
  29. configure.in
  30. EXTRA_DIST = dot.el dotemacs gnuplot-gui.el gnuplot.el gnuplot.el.old \
  31. gpelcard.tex info-look.20.2.el info-look.20.3.el
  32. DISTFILES = $(DIST_COMMON) $(EXTRA_DIST)
  33. default: $(ELCS)
  34. gnuplot.elc: gnuplot.el
  35. test "$(srcdir)" = "$(top_builddir)" || cp $(srcdir)/gnuplot.el .
  36. $(BYTEC) gnuplot.el
  37. gnuplot-gui.elc: gnuplot.elc gnuplot-gui.el
  38. test "$(srcdir)" = "$(top_builddir)" || cp $(srcdir)/gnuplot-gui.el .
  39. $(BYTEC) gnuplot-gui.el
  40. ## There are many possibilities for info-look:
  41. ##
  42. ## EMACS version use
  43. ## -----------------------------------------
  44. ## Emacs or XEmacs 19 info-look.20.2.el
  45. ## Emacs 20.2 or less info-look.20.2.el
  46. ## Emacs 20.3 nothing
  47. ## XEmacs 20+ info-look.20.3.el
  48. ##
  49. ## want to use my modified version even if 20.2 is installed because a
  50. ## bug is fixed
  51. ##
  52. ## the first 6 lines attempt to ascertain the version number of
  53. ## $(EMACS), then multiply by 100 to convert it to an integer for the
  54. ## sake of the integer comparisons in the following lines. Is this a
  55. ## hassle, or what?!
  56. ##
  57. MESSAGE = compiling info-look for $(EMACS) $$vnum
  58. info-look.elc: info-look.20.2.el info-look.20.3.el
  59. @if [ $(EMACS) = "emacs" ]; \
  60. then vnum=`emacs --version | grep 'Emacs [12]' | awk '{print $$3}'`; \
  61. else vnum=`xemacs --version | grep 'Emacs [12]' | awk '{print $$2}'`; \
  62. fi; \
  63. vn=`echo "$$vnum" | awk 'BEGIN{FS="."}{print $$1 "." $$2}'`; \
  64. version=`echo "$$vn" | awk '{print 100*$$1}'`; \
  65. if [ $(EMACS) = "emacs" -a $$version -ge 2030 ]; \
  66. then echo "no need to compile info-look for $(EMACS) $$vnum"; \
  67. else echo "$(MESSAGE)"; \
  68. fi; \
  69. if [ $(EMACS) = "emacs" -a $$version -lt 2030 ]; \
  70. then echo Using info-look.20.2.el; \
  71. cp $(srcdir)/info-look.20.2.el info-look.el; \
  72. elif [ $(EMACS) = "xemacs" -a $$version -ge 2000 ]; \
  73. then echo Using info-look.20.3.el; \
  74. cp $(srcdir)/info-look.20.3.el info-look.el; \
  75. elif [ $(EMACS) = "xemacs" -a $$version -lt 2000 ]; \
  76. then echo Using info-look.20.2.el; \
  77. cp $(srcdir)/info-look.20.2.el info-look.el; \
  78. fi ;\
  79. if [ ! \( $(EMACS) = "emacs" -a $$version -ge 2030 \) ]; \
  80. then $(BYTEC) info-look.el; fi;
  81. ps: gpelcard.ps
  82. gpelcard.ps: gpelcard.dvi
  83. $(DVIPS) -o gpelcard.ps gpelcard.dvi
  84. gpelcard.dvi: gpelcard.tex
  85. $(LATEX) $(srcdir)/gpelcard.tex
  86. all: gnuplot.elc info-look.elc gnuplot-gui.elc
  87. install:
  88. mkinstalldirs $(lispdir)
  89. @for p in *.el *.elc; do \
  90. echo " $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
  91. $(INSTALL_DATA) $$p $(lispdir)/$$p; \
  92. done
  93. distdir = $(top_builddir)/$(PACKAGE)-$(VERSION)/$(subdir)
  94. subdir = lisp
  95. distdir: $(DISTFILES)
  96. distdir=`cd $(distdir) && pwd`
  97. @for file in $(DISTFILES); do \
  98. d=$(srcdir); \
  99. if test -d $$d/$$file; then \
  100. cp -pr $$d/$$file $(distdir)/$$file; \
  101. else \
  102. test -f $(distdir)/$$file \
  103. || ln $$d/$$file $(distdir)/$$file 2> /dev/null \
  104. || cp -p $$d/$$file $(distdir)/$$file || :; \
  105. fi; \
  106. done
  107. check-am: all-am
  108. check: check-am
  109. installcheck-am:
  110. installcheck: installcheck-am
  111. install-exec-am:
  112. install-exec: install-exec-am
  113. .PHONY: tags distdir info-am info dvi-am dvi check check-am \
  114. installcheck-am installcheck install-exec-am install-exec \
  115. install-data-am install-data install-am install uninstall-am uninstall \
  116. all-redirect all-am all installdirs mostlyclean-generic \
  117. distclean-generic clean-generic maintainer-clean-generic clean \
  118. mostlyclean distclean maintainer-clean
  119. clean:
  120. -rm -f *.elc info-look.el gpelcard.ps gpelcard.dvi gpelcard.log \
  121. gpelcard.aux
  122. test "$(srcdir)" = "$(top_builddir)" || rm -f gnuplot.el gnuplot-gui.el
  123. distclean: clean
  124. rm -f Makefile config.status config.log config.cache
  125. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  126. # Otherwise a system limit (for SysV at least) may be exceeded.
  127. .NOEXPORT: