-
Notifications
You must be signed in to change notification settings - Fork 130
/
Copy pathMakefile
36 lines (29 loc) · 812 Bytes
/
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
VERSION=0.0.15
EMACS = emacs
PREFIX = /usr/local
INSTALLLIBDIR = $(PREFIX)/share/emacs/site-lisp
FLAGS = -batch -L $(INSTALLLIBDIR) -q -f batch-byte-compile
SRC = yaml-mode.el
INSTALL = /usr/bin/install -c -m 444
all: bytecompile
bytecompile:
$(EMACS) $(FLAGS) $(SRC)
install: bytecompile
$(INSTALL) yaml-mode.elc $(INSTALLLIBDIR)
$(INSTALL) yaml-mode.el $(INSTALLLIBDIR)
uninstall:
rm $(INSTALLLIBDIR)/yaml-mode.elc
rm $(INSTALLLIBDIR)/yaml-mode.el
tardist:
mkdir yaml-mode-$(VERSION)
cp yaml-mode.el Makefile README Changes yaml-mode-$(VERSION)
tar zcvf yaml-mode-$(VERSION).tar.gz yaml-mode-$(VERSION)
rm -fr yaml-mode-$(VERSION)
.PHONY: test
test:
$(EMACS) -Q -batch -L . \
-l test/yaml-mode-test.el \
-f ert-run-tests-batch-and-exit
.PHONY: clean
clean:
rm -fr \#*\# *.elc *~ *.tar.gz