source: git/emacs/Makefile.in @ f0f0cea

spielwiese
Last change on this file since f0f0cea was 1dba07, checked in by Alexander Dreyer <dreyer@…>, 14 years ago
ADD make depend on top-level git-svn-id: file:///usr/local/Singular/svn/trunk@13020 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.7 KB
Line 
1#####################################################################
2###
3### Makefile for emacs stuff
4###
5#####################################################################
6SHELL=/bin/sh
7
8prefix          = @prefix@
9docdir          = ${prefix}/doc
10examplesdir     = ${prefix}/examples
11SINGULAR        = @SINGULAR@
12singulardir     = ${prefix}/Singular
13emacsdir        = ${install_prefix}/emacs
14
15
16PERL            = @PERL@
17INSTALL         = ../install-sh -c
18INSTALL_DATA    = ${INSTALL} -m 644
19MKINSTALLDIRS   = ../mkinstalldirs
20
21SINGULAR_HLP    = ${docdir}/singular.hlp
22
23all install: cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el
24
25install_all: install
26
27cmd-cmpl.el: ${SINGULAR} cmpl.pl
28        ${PERL} cmpl.pl -Singular ${SINGULAR} -cmpl cmd > cmd-cmpl.el
29
30hlp-cmpl.el: ${SINGULAR_HLP} cmpl.pl
31        ${PERL} cmpl.pl -hlp ${SINGULAR_HLP} -cmpl hlp > hlp-cmpl.el
32
33ex-cmpl.el: cmpl.pl ${examplesdir}
34                ${PERL} cmpl.pl -cmpl ex -ex_dir ${examplesdir} > ex-cmpl.el
35
36lib-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
41lib-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
45clean mostlyclean distclean:
46        rm -f cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el
47
48install-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
58depend:
59        @echo "No make depend available!"
Note: See TracBrowser for help on using the repository browser.