[b00a82] | 1 | ##################################################################### |
---|
| 2 | ### |
---|
| 3 | ### Makefile for emacs stuff |
---|
| 4 | ### |
---|
| 5 | ##################################################################### |
---|
| 6 | SHELL=/bin/sh |
---|
| 7 | |
---|
| 8 | prefix = @prefix@ |
---|
| 9 | docdir = ${prefix}/doc |
---|
[c04b94] | 10 | examplesdir = ${prefix}/examples |
---|
[b00a82] | 11 | SINGULAR = @SINGULAR@ |
---|
[7022cd] | 12 | singulardir = ${prefix}/Singular |
---|
[4b72f6] | 13 | emacsdir = ${install_prefix}/emacs |
---|
| 14 | |
---|
[7022cd] | 15 | |
---|
[a70441f] | 16 | PERL = @PERL@ |
---|
[4b72f6] | 17 | INSTALL = ../install-sh -c |
---|
| 18 | INSTALL_DATA = ${INSTALL} -m 644 |
---|
| 19 | MKINSTALLDIRS = ../mkinstalldirs |
---|
[b00a82] | 20 | |
---|
| 21 | SINGULAR_HLP = ${docdir}/singular.hlp |
---|
| 22 | |
---|
[c04b94] | 23 | all install: cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el |
---|
[b00a82] | 24 | |
---|
| 25 | cmd-cmpl.el: ${SINGULAR} cmpl.pl |
---|
[a70441f] | 26 | ${PERL} cmpl.pl -Singular ${SINGULAR} -cmpl cmd > cmd-cmpl.el |
---|
[b00a82] | 27 | |
---|
| 28 | hlp-cmpl.el: ${SINGULAR_HLP} cmpl.pl |
---|
[a70441f] | 29 | ${PERL} cmpl.pl -hlp ${SINGULAR_HLP} -cmpl hlp > hlp-cmpl.el |
---|
[b00a82] | 30 | |
---|
[c04b94] | 31 | ex-cmpl.el: cmpl.pl ${examplesdir} |
---|
[a70441f] | 32 | ${PERL} cmpl.pl -cmpl ex -ex_dir ${examplesdir} > ex-cmpl.el |
---|
[c04b94] | 33 | |
---|
[7022cd] | 34 | lib-cmpl-old.el: ${prefix}/Singular/Makefile cmpl.pl |
---|
[b16f9af] | 35 | ${MAKE} --no-print-directory -s -f ${prefix}/Singular/Makefile echoLIBS > lib-temp |
---|
[7022cd] | 36 | cat lib-temp | ${PERL} cmpl.pl -cmpl lib > lib-cmpl-old.el |
---|
[b16f9af] | 37 | rm lib-temp |
---|
| 38 | |
---|
[7022cd] | 39 | lib-cmpl.el: ${prefix}/Singular/Makefile lib.pl |
---|
| 40 | ${MAKE} --no-print-directory -s -f ${prefix}/Singular/Makefile echoLIBS > lib-temp |
---|
| 41 | ${PERL} lib.pl -s ${singulardir} `cat lib-temp` > lib-cmpl.el |
---|
| 42 | |
---|
[aac46c] | 43 | clean mostlyclean distclean: |
---|
[b4539b4] | 44 | rm -f cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el |
---|
[b00a82] | 45 | |
---|
[4b72f6] | 46 | install-sharedist: all |
---|
| 47 | ${MKINSTALLDIRS} ${emacsdir} |
---|
| 48 | ${INSTALL_DATA} cmd-cmpl.el ${emacsdir} |
---|
| 49 | ${INSTALL_DATA} lib-cmpl.el ${emacsdir} |
---|
| 50 | ${INSTALL_DATA} hlp-cmpl.el ${emacsdir} |
---|
[c04b94] | 51 | ${INSTALL_DATA} ex-cmpl.el ${emacsdir} |
---|
[4b72f6] | 52 | ${INSTALL_DATA} singular.el ${emacsdir} |
---|
| 53 | ${INSTALL_DATA} .emacs-singular ${emacsdir} |
---|
[880ed2] | 54 | ${INSTALL_DATA} .emacs-general ${emacsdir} |
---|
[4b72f6] | 55 | ${INSTALL_DATA} sing.xpm ${emacsdir} |
---|
[b00a82] | 56 | |
---|