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