blob: e98e2d05f9797d44cd022307eff9e5924abfa62c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
.PHONY: all lisp contrib clean realclean distclean fullclean install dist
.PRECIOUS: %.elc
EMACS = emacs
SITEFLAG = --no-site-file
# Xemacs users will probably want the following settings.
#EMACS = xemacs
#SITEFLAG = -no-site-file
# Installation options
# PREFIX is only used here.
PREFIX = /usr/local
ELISPDIR = $(PREFIX)/share/emacs/site-lisp/erbot
all: lisp contrib
lisp:
@$(EMACS) -q $(SITEFLAG) -batch --debug-init \
-l erball.el \
-f erball-compile --compile-erbot
contrib:
@(cd contrib && \
$(EMACS) -q $(SITEFLAG) -batch \
-l ../erball.el \
-f erball-compile \
--paths-rel-to '../' --compile-erbot)
clean realclean distclean fullclean:
-rm -f *.elc contrib/*.elc *~ contrib/*~
install:
install -d $(ELISPDIR)
install -m 0644 *.el *.elc $(ELISPDIR)
install -d $(ELISPDIR)/contrib
install -m 0644 contrib/*.el contrib/*.elc $(ELISPDIR)/contrib
dist: distclean
(cd ..; tar cvzf ../erbot.tar.gz erbot)
|