-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
37 lines (31 loc) · 803 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
37
ifeq (, $(shell which keg))
EMACS = emacs
else
EMACS = keg emacs
endif
EL ?= text-adjust.el
ELC = $(EL:%.el=%.elc)
ELFLAGS = -q -Q -no-site-file -batch
all: $(ELC)
%.elc: %.el
$(EMACS) $(ELFLAGS) -L . -f batch-byte-compile $<
# clean up
clean:
-rm -f $(ELC)
distclean: clean
maintainer-clean: clean
test: run-test
run-test: $(ELC)
$(EMACS) $(ELFLAGS) -L . -l test/run-test.el
# cl: git2cl
# git2cl:
# @git log --date=short --pretty=format:"%ad %an <%ae>%n%n* %s%n%b%n" | \
# sed -e 's/^\(.*\)$$/\t\1/g' | \
# sed -e 's/^\t\([0-9]*-[0-9]*-[0-9]*.*\)$$/\1/g' | \
# sed -e 's/^\t$$//g' | \
# sed ':loop; N; $$!b loop; s/\n\n\n/\n\n/g' \
# > ChangeLog
# # create tar.gz
# release:
# @git archive --format=tar --prefix=rail-$(RAILVER)/ HEAD \
# | gzip -9 > ../rail-$(RAILVER).tar.gz