1 | ##################################################################### |
---|
2 | ### |
---|
3 | ### Makefile for emacs stuff |
---|
4 | ### |
---|
5 | ##################################################################### |
---|
6 | SHELL=/bin/sh |
---|
7 | |
---|
8 | prefix = @prefix@ |
---|
9 | docdir = ${prefix}/doc |
---|
10 | examplesdir = ${prefix}/examples |
---|
11 | SINGULAR = @SINGULAR@ |
---|
12 | emacsdir = ${install_prefix}/emacs |
---|
13 | |
---|
14 | PERL = @PERL@ |
---|
15 | INSTALL = ../install-sh -c |
---|
16 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
17 | MKINSTALLDIRS = ../mkinstalldirs |
---|
18 | |
---|
19 | SINGULAR_HLP = ${docdir}/singular.hlp |
---|
20 | |
---|
21 | all install: cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el |
---|
22 | |
---|
23 | cmd-cmpl.el: ${SINGULAR} cmpl.pl |
---|
24 | ${PERL} cmpl.pl -Singular ${SINGULAR} -cmpl cmd > cmd-cmpl.el |
---|
25 | |
---|
26 | hlp-cmpl.el: ${SINGULAR_HLP} cmpl.pl |
---|
27 | ${PERL} cmpl.pl -hlp ${SINGULAR_HLP} -cmpl hlp > hlp-cmpl.el |
---|
28 | |
---|
29 | ex-cmpl.el: cmpl.pl ${examplesdir} |
---|
30 | ${PERL} cmpl.pl -cmpl ex -ex_dir ${examplesdir} > ex-cmpl.el |
---|
31 | |
---|
32 | # this is weird, if I work directly with _one_ pipe, |
---|
33 | # then things break from time to time |
---|
34 | lib-cmpl.el: ${prefix}/Singular/Makefile cmpl.pl |
---|
35 | ${MAKE} --no-print-directory -s -f ${prefix}/Singular/Makefile echoLIBS > lib-temp |
---|
36 | cat lib-temp | ${PERL} cmpl.pl -cmpl lib > lib-cmpl.el |
---|
37 | rm lib-temp |
---|
38 | |
---|
39 | clean mostlyclean distclean: |
---|
40 | rm -f cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el |
---|
41 | |
---|
42 | install-sharedist: all |
---|
43 | ${MKINSTALLDIRS} ${emacsdir} |
---|
44 | ${INSTALL_DATA} cmd-cmpl.el ${emacsdir} |
---|
45 | ${INSTALL_DATA} lib-cmpl.el ${emacsdir} |
---|
46 | ${INSTALL_DATA} hlp-cmpl.el ${emacsdir} |
---|
47 | ${INSTALL_DATA} ex-cmpl.el ${emacsdir} |
---|
48 | ${INSTALL_DATA} singular.el ${emacsdir} |
---|
49 | ${INSTALL_DATA} .emacs-singular ${emacsdir} |
---|
50 | ${INSTALL_DATA} .emacs-general ${emacsdir} |
---|
51 | ${INSTALL_DATA} sing.xpm ${emacsdir} |
---|
52 | |
---|