File: Makefile

package info (click to toggle)
mailscripts 30-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 328 kB
  • sloc: python: 644; perl: 599; lisp: 397; sh: 34; makefile: 28
file content (31 lines) | stat: -rw-r--r-- 780 bytes parent folder | download | duplicates (2)
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
MANPAGES=mdmv.1 mbox2maildir.1 \
	notmuch-slurp-debbug.1 notmuch-extract-patch.1 maildir-import-patch.1 \
	mbox-extract-patch.1 \
	imap-dl.1 \
	email-extract-openpgp-certs.1 \
	email-print-mime-structure.1 \
	notmuch-import-patch.1 \
	gmi2email.1
COMPLETIONS=completions/bash/email-print-mime-structure completions/bash/imap-dl

all: $(MANPAGES) $(COMPLETIONS)

check:
	./tests/email-print-mime-structure.sh
	mypy --strict ./email-print-mime-structure
	mypy --strict ./imap-dl

clean:
	rm -f $(MANPAGES)
	rm -rf completions .mypy_cache

%.1: %.1.pod
	pod2man --section=1 --date="Debian Project" --center="User Commands" \
		--utf8 \
		--name=$(subst .1,,$@) \
		$^ $@

completions/bash/%:
	mkdir -p completions/bash
	register-python-argcomplete $(notdir $@) >$@.tmp
	mv $@.tmp $@