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
18 top_srcdir
= @top_srcdir@
26 INSTALL_DATA
= @INSTALL_DATA@
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 \
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
)
44 gnuplot.elc
: gnuplot.el
45 test "$(srcdir)" = "$(top_builddir)" || cp
$(srcdir)/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:
55 ## -----------------------------------------
56 ## Emacs or XEmacs 19 info-look.20.2.el
57 ## Emacs 20.2 or less info-look.20.2.el
59 ## XEmacs 20+ info-look.20.3.el
61 ## want to use my modified version even if 20.2 is installed because a
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
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}'`; \
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)"; \
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
; \
91 if
[ ! \
( $(EMACS
) = "emacs" -a
$$version -ge
2030 \
) ]; \
92 then
$(BYTEC
) info-look.el
; fi
;
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
105 mkinstalldirs
$(lispdir
)
106 @for p in
*.el
*.elc
; do \
107 echo
" $(INSTALL_DATA) $$p $(lispdir)/$$p"; \
108 $(INSTALL_DATA
) $$p $(lispdir
)/$$p; \
111 distdir
= $(top_builddir
)/$(PACKAGE
)-$(VERSION
)/$(subdir
)
115 distdir
: $(DISTFILES
)
116 distdir
=`cd $(distdir) && pwd`
117 @for file in
$(DISTFILES
); do \
119 if
test -d
$$d/$$file; then \
120 cp
-pr
$$d/$$file $(distdir
)/$$file; \
122 test -f
$(distdir
)/$$file \
123 || ln
$$d/$$file $(distdir
)/$$file 2> /dev
/null \
124 || cp
-p
$$d/$$file $(distdir
)/$$file ||
:; \
130 installcheck: installcheck-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
142 -rm -f
*.elc info-look.el gpelcard.ps gpelcard.
dvi gpelcard.log \
144 test "$(srcdir)" = "$(top_builddir)" ||
rm -f gnuplot.el gnuplot-gui.el
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.