-
Notifications
You must be signed in to change notification settings - Fork 5
/
Makefile
41 lines (36 loc) · 1.08 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
EMACS ?= emacs
SANDBOX_DIR ?= ./sandbox
.PHONY: deps
deps:
@mkdir -p "$(SANDBOX_DIR)"
./with-gnu-utils/with-gnu-utils \
./makem/makem.sh -vv --emacs "$(EMACS)" --sandbox="$(SANDBOX_DIR)" \
--install-deps --install-linters
.PHONY: test
test: clean
@echo "Using $(shell which $(EMACS))..."
./with-gnu-utils/with-gnu-utils \
./makem/makem.sh -vv --emacs "$(EMACS)" --sandbox="$(SANDBOX_DIR)" \
--no-compile test
# TODO allow multiple main files
.PHONY: lint
lint:
./with-gnu-utils/with-gnu-utils \
./makem/makem.sh -vv --emacs "$(EMACS)" --sandbox="$(SANDBOX_DIR)" \
--exclude once-setup lint
.PHONY: clean
clean:
rm -f -- *.elc **/*.elc *-autoloads.el **/*-autoloads.el *\~ **/*\~
.PHONY: texi
texi:
@# put index version of readme in texi folder
@mkdir -p texi
@git show :README.org > once.org
@rm -f once.texi
@# NOTE a pre-commit hook will fail if wrap this line
./makem/makem.sh -vv --emacs "$(EMACS)" \
--sandbox="$(SANDBOX_DIR)" batch -- once.org -l ox-extra \
-f org-texinfo-export-to-texinfo
@# add missing final newline
@echo >> once.texi
@rm -f once.org