-
-
Notifications
You must be signed in to change notification settings - Fork 49
/
Makefile
43 lines (35 loc) · 1.21 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
-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:
@ GITDIR="$$(realpath --relative-to=. "$$(git rev-parse --git-dir)")"; \
mkdir "$$GITDIR/modules"; \
git clone https://github.com/emacscollective/borg lib/borg \
--separate-git-dir "$$GITDIR/modules/borg"
@cd lib/borg; git symbolic-ref HEAD refs/heads/main
@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 ../etc/codespell/ignore-words \
--exclude-file ../etc/codespell/ignore-lines \
--skip $(shell sed '/^\s*$$/d;/^\s*#.*$$/d;s/#.*//;s/\s//g' \
etc/codespell/ignore-files | tr "\\n" ",")
codespell-fix:
@cd lib; codespell --write-changes \
--ignore-words ../etc/codespell/ignore-words \
--exclude-file ../etc/codespell/ignore-lines \
--skip $(shell sed '/^\s*$$/d;/^\s*#.*$$/d;s/#.*//;s/\s//g' \
etc/codespell/ignore-files | tr "\\n" ",")
endif