blob: c98364b487d9bf84ceae1572eac7162052a00684 (
plain) (
blame)
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
.POSIX:
PREFIX = /usr/local
MANPREFIX = $(PREFIX)/share/man
DATE = 2021-06-19
VERSION = 0.2.0
NAME = git-permalink
MAILING_LIST = public-inbox
TRANSLATIONS = pt fr eo
.SUFFIXES:
.SUFFIXES: .in
.in:
sed -e 's/@VERSION@/$(VERSION)/g' -e 's/@DATE@/$(DATE)/g' < $< > $@
manpages.en.in = \
doc/git-permalink.en.1.in \
manpages.in = $(manpages.en.in) \
doc/git-permalink.pt.1.in \
doc/git-permalink.fr.1.in \
doc/git-permalink.eo.1.in
manpages = $(manpages.in:.in=)
all: src/git-permalink.sh $(manpages)
check: all
sh tests/cli-opts.sh
sh tests/install-uninstall.sh
sh tests/remotes.sh
dev-check: check
sh aux/assert-shellcheck.sh
sh aux/workflow/assert-todos.sh
sh aux/workflow/assert-changelog.sh $(NAME) $(NAME)
sh aux/workflow/assert-readme.sh $(NAME) $(MAILING_LIST)
sh aux/workflow/l10n.sh -l '$(TRANSLATIONS)' $(manpages.en.in)
sh aux/workflow/assert-manpages.sh $(NAME) $(MAILING_LIST)
install: all
mkdir -p $(DESTDIR)$(PREFIX)/bin
cp src/git-permalink.sh $(DESTDIR)$(PREFIX)/bin/$(NAME)
chmod +x $(DESTDIR)$(PREFIX)/bin/$(NAME)
sh aux/workflow/manpages.sh -ip $(DESTDIR)$(PREFIX) $(manpages)
uninstall:
rm -f $(DESTDIR)$(PREFIX)/bin/$(NAME)
sh aux/workflow/manpages.sh -up $(DESTDIR)$(PREFIX) $(manpages)
clean:
rm -rf public/ src/git-permalink.sh $(manpages)
dist:
sh aux/workflow/dist.sh $(DATE) $(VERSION) $(NAME) $(NAME) $(MAILING_LIST)
public: README.md TODOs.md CHANGELOG.md $(manpages)
sh aux/workflow/public.sh $(NAME) $(NAME) $(MAILING_LIST) public
sh aux/workflow/manpages.sh -Ho public $(manpages)
|