File: Makefile.in

package info (click to toggle)
mailcrypt 3.5.8-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 928 kB
  • ctags: 422
  • sloc: lisp: 4,439; python: 437; makefile: 208; sh: 170
file content (36 lines) | stat: -rw-r--r-- 961 bytes parent folder | download
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
EMACS=@EMACS@
GNUPG=gpg

GPG_KEYS = remailer-keys/pubring.gpg

all: check

$(GPG_KEYS): rings.txt
	mkdir remailer-keys
	gpg --homedir remailer-keys --allow-secret-key-import --fast-import rings.txt
#	./fix-trust.py full-rings
	rm -f remailer-keys/pubring.gpg~

rings.txt:
	@echo "rings.txt must be manually created"
	@exit 1

# check to make sure the necessary python module is available first. A
# missing module will cause an error deep inside the test loop, and stderr
# isn't communicated upwards very well.
have-py-gnupg.stamp:
	python -c 'import GnuPGInterface'
	touch $@

check: $(GPG_KEYS) have-py-gnupg.stamp
	$(EMACS) -q --no-site-file -batch -l test-remailer.el -f run-all-tests

onetest: $(GPG_KEYS) have-py-gnupg.stamp
	$(EMACS) -q --no-site-file -batch -l test-remailer.el -f run-one-test

clean:
	rm -rf remailer-keys

pack:
	gpg --homedir remailer-keys -a --export-all >rings.txt
	gpg --homedir remailer-keys -a --export-secret-keys >>rings.txt