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 | singulardir = ${prefix}/Singular |
---|
13 | emacsdir = ${install_prefix}/emacs |
---|
14 | |
---|
15 | |
---|
16 | PERL = @PERL@ |
---|
17 | INSTALL = ../install-sh -c |
---|
18 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
19 | MKINSTALLDIRS = ../mkinstalldirs |
---|
20 | |
---|
21 | SINGULAR_HLP = ${docdir}/singular.hlp |
---|
22 | |
---|
23 | all install: cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el |
---|
24 | |
---|
25 | install_all: install |
---|
26 | |
---|
27 | cmd-cmpl.el: ${SINGULAR} cmpl.pl |
---|
28 | ${PERL} cmpl.pl -Singular ${SINGULAR} -cmpl cmd > cmd-cmpl.el |
---|
29 | |
---|
30 | hlp-cmpl.el: ${SINGULAR_HLP} cmpl.pl |
---|
31 | ${PERL} cmpl.pl -hlp ${SINGULAR_HLP} -cmpl hlp > hlp-cmpl.el |
---|
32 | |
---|
33 | ex-cmpl.el: cmpl.pl ${examplesdir} |
---|
34 | ${PERL} cmpl.pl -cmpl ex -ex_dir ${examplesdir} > ex-cmpl.el |
---|
35 | |
---|
36 | lib-cmpl-old.el: ${prefix}/Singular/Makefile cmpl.pl |
---|
37 | ${MAKE} --no-print-directory -s -f ${prefix}/Singular/Makefile echoLIBS > lib-temp |
---|
38 | cat lib-temp | ${PERL} cmpl.pl -cmpl lib > lib-cmpl-old.el |
---|
39 | rm lib-temp |
---|
40 | |
---|
41 | lib-cmpl.el: ${prefix}/Singular/Makefile lib.pl |
---|
42 | (cd ${prefix}/Singular;${MAKE} --no-print-directory -s -f Makefile echoLIBS) > lib-temp |
---|
43 | ${PERL} lib.pl -s ${singulardir} `cat lib-temp` > lib-cmpl.el |
---|
44 | |
---|
45 | clean mostlyclean distclean: |
---|
46 | rm -f cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el |
---|
47 | |
---|
48 | install-sharedist: all |
---|
49 | ${MKINSTALLDIRS} ${emacsdir} |
---|
50 | ${INSTALL_DATA} cmd-cmpl.el ${emacsdir} |
---|
51 | ${INSTALL_DATA} lib-cmpl.el ${emacsdir} |
---|
52 | ${INSTALL_DATA} hlp-cmpl.el ${emacsdir} |
---|
53 | ${INSTALL_DATA} ex-cmpl.el ${emacsdir} |
---|
54 | ${INSTALL_DATA} singular.el ${emacsdir} |
---|
55 | ${INSTALL_DATA} .emacs-singular ${emacsdir} |
---|
56 | ${INSTALL_DATA} .emacs-general ${emacsdir} |
---|
57 | |
---|
58 | depend: |
---|
59 | @echo "No make depend available!" |
---|