-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
41 lines (33 loc) · 1.17 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
-include lib/borg/borg.mk
ifndef BORG_DIR
help helpall::
$(info )
$(info Bootstrapping)
$(info -------------)
$(info make bootstrap-borg = make borg and make targets available)
@printf "\n"
bootstrap-borg:
@git submodule--helper clone --name borg --path lib/borg \
--url [email protected]:emacscollective/borg.git
@cd lib/borg; git symbolic-ref HEAD refs/heads/master
@cd lib/borg; git reset --hard HEAD
else
helpall::
$(info Test and fix targets)
$(info --------------------)
$(info make codespell-dry = run codespell, dry run)
$(info make codespell-fix = run codespell, write fixes)
@printf "\n"
codespell-dry:
@cd lib; codespell \
--ignore-words ~/.emacs.d/etc/codespell/ignore-words \
--exclude-file ~/.emacs.d/etc/codespell/ignore-lines \
--skip $(shell sed '/^\s*$$/d;/^\s*#.*$$/d;s/#.*//;s/\s//g' \
~/.emacs.d/etc/codespell/ignore-files | tr "\\n" ",")
codespell-fix:
@cd lib; codespell --write-changes \
--ignore-words ~/.emacs.d/etc/codespell/ignore-words \
--exclude-file ~/.emacs.d/etc/codespell/ignore-lines \
--skip $(shell sed '/^\s*$$/d;/^\s*#.*$$/d;s/#.*//;s/\s//g' \
~/.emacs.d/etc/codespell/ignore-files | tr "\\n" ",")
endif