source: git/emacs/Makefile.in @ 880ed2

spielwiese
Last change on this file since 880ed2 was 880ed2, checked in by Olaf Bachmann <obachman@…>, 24 years ago
* added .emacs-general to install target git-svn-id: file:///usr/local/Singular/svn/trunk@4460 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 1.6 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@
12emacsdir        = ${install_prefix}/emacs
13
14PERL            = @PERL@
15INSTALL         = ../install-sh -c
16INSTALL_DATA    = ${INSTALL} -m 644
17MKINSTALLDIRS   = ../mkinstalldirs
18
19SINGULAR_HLP    = ${docdir}/singular.hlp
20
21all install: cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el
22
23cmd-cmpl.el: ${SINGULAR} cmpl.pl
24        ${PERL} cmpl.pl -Singular ${SINGULAR} -cmpl cmd > cmd-cmpl.el
25
26hlp-cmpl.el: ${SINGULAR_HLP} cmpl.pl
27        ${PERL} cmpl.pl -hlp ${SINGULAR_HLP} -cmpl hlp > hlp-cmpl.el
28
29ex-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
34lib-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
39clean mostlyclean distclean:
40        rm -f cmd-cmpl.el hlp-cmpl.el lib-cmpl.el ex-cmpl.el
41
42install-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
Note: See TracBrowser for help on using the repository browser.