forked from lewang/rebox2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (38 loc) · 1.46 KB
/
Makefile
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# Makefile - for rebox2
#
##----------------------------------------------------------------------
## YOU MUST EDIT THE FOLLOWING LINES
##----------------------------------------------------------------------
# Name of your emacs binary
EMACS=emacs
# Where local software is found
prefix=/usr/local
# Where local lisp files go.
lispdir=$(prefix)/share/emacs/site-lisp
##----------------------------------------------------------------------
## YOU MAY NEED TO EDIT THESE
##----------------------------------------------------------------------
# Using emacs in batch mode.
BATCH=$(EMACS) -batch -q -no-site-file -eval \
"(setq load-path (cons \".\" (cons \"$(lispdir)\" load-path)))"
# Specify the byte-compiler for compiling org-mode files
ELC= $(BATCH) -f batch-byte-compile
# How to copy the lisp files and elc files to their distination.
CP = install -m 644
##----------------------------------------------------------------------
## BELOW THIS LINE ON YOUR OWN RISK!
##----------------------------------------------------------------------
# The following variables need to be defined by the maintainer
LISPFILES = rebox2.el \
ELCFILES = $(LISPFILES:.el=.elc)
default: $(ELCFILES)
install: install-lisp
install-lisp: $(LISPFILES) $(ELCFILES)
install -d -m 755 $(DESTDIR)$(lispdir)
$(CP) $(LISPFILES) $(DESTDIR)$(lispdir)
$(CP) $(ELCFILES) $(DESTDIR)$(lispdir)
clean: cleanelc
cleanelc:
rm -f $(ELCFILES)
.el.elc:
$(ELC) $<