1
## This is a -*- makefile -*-
3
# What the Emacs binary is called on your system
5
EMACSFLAGS = @EMACSFLAGS@
7
# Prefix for constructing installation directory paths
9
exec_prefix = @exec_prefix@
11
# Shared directory for read-only data files
12
datadir = $(prefix)/share
14
# Where to put the .el and .elc files
15
lispdir = $(datadir)/emacs/site-lisp
17
# Where to put the Info files
19
#INFOFILES = mailcrypt.info mailcrypt.info-1 mailcrypt.info-2
20
INFOFILES = mailcrypt.info
22
# Installation command
24
INSTALL_DATA = @INSTALL_DATA@
25
INSTALL_INFO = @INSTALL_INFO@
27
# Various auxiliary programs
37
SOURCES = @EXTRA_SRCS@ \
38
mailcrypt.el mc-toplev.el mc-pgp.el mc-remail.el \
39
mc-pgp5.el mc-pgp6.el mc-gpg.el expect.el mc-setversion.el
41
OBJECTS = @EXTRA_OBJS@ \
42
mailcrypt.elc mc-toplev.elc mc-pgp.elc mc-remail.elc \
43
mc-pgp5.elc mc-pgp6.elc mc-gpg.elc expect.elc mc-setversion.elc
45
GPG_TESTCASES = $(foreach f,CS.s1v CS.s3v E.e1r E.e3 ES.e1r.s1v ES.e1r.s3v \
46
ES.e3.s1v S.s1v S.s3v CS.s2v CS.s4 E.e2r E.e4 ES.e1r.s2v \
47
ES.e1r.s4 ES.e4.s1v S.s2v S.s4 SE,tests/gpg-testcases/$(f))
49
TESTFILES_GPG = tests/Makefile.in \
50
tests/make_gpg_testcases.py tests/test-gpg.el tests/gpg-keys/Makefile \
51
tests/gpg-keys/fix-trust.py tests/gpg-keys/make-rings.py \
52
tests/gpg-keys/rings.txt $(GPG_TESTCASES)
53
TESTFILES_REMAILER = tests/remailer/Makefile.in tests/remailer/rings.txt \
54
tests/remailer/rlist.txt tests/remailer/test-remailer.el \
55
tests/remailer/unwind.py
57
DISTFILES = $(SOURCES) ANNOUNCE COPYING ChangeLog ChangeLog.1 INSTALL \
58
LCD-entry Makefile.in NEWS ONEWS README configure configure.in \
59
install-sh load-path.hack mailcrypt.texi mkinstalldirs texi2html.ext \
60
FSF-timer.el $(INFOFILES) mailcrypt.dvi README.gpg $(TESTFILES_GPG) \
64
#.PHONY: all clean dist distclean dvi html info install \
65
# installdirs ps uninstall
70
$(EMACS) -batch $(EMACSFLAGS) -l $(srcdir)/load-path.hack \
71
-f batch-byte-compile $<
76
$(MAKE) -C tests check
78
install: all installdirs install-info
79
for f in $(SOURCES); do \
80
$(INSTALL_DATA) $(srcdir)/$$f $(lispdir); \
82
for f in $(OBJECTS); do \
83
$(INSTALL_DATA) $$f $(lispdir); \
86
# Make sure all installation directories actually exist
87
# by making them if necessary.
88
installdirs: mkinstalldirs
89
$(srcdir)/mkinstalldirs $(lispdir) $(infodir)
91
# If your install-info doesn't know how to look inside the .info file for the
92
# menu entry to add, try adding
93
# --entry="* Mailcrypt: (mailcrypt). An Emacs/PGP interface"
97
cd $(srcdir) && for file in $(INFOFILES); do\
98
$(INSTALL_DATA) $$file $(infodir)/$$file; \
100
-$(INSTALL_INFO) --info-dir=$(infodir) mailcrypt.info
103
-cd $(lispdir) && rm -f $(SOURCES) $(OBJECTS)
104
-cd $(infodir) && rm -f $(INFOFILES)
105
$(INSTALL_INFO) --remove --info-dir=$(infodir) mailcrypt.info
109
$(INFOFILES): mailcrypt.texi
110
$(MAKEINFO) $(srcdir)/mailcrypt.texi
112
timer.el: FSF-timer.el
113
cp FSF-timer.el timer.el
117
mailcrypt.dvi: mailcrypt.texi
118
$(TEXI2DVI) $(srcdir)/mailcrypt.texi
122
mailcrypt.ps: mailcrypt.dvi
123
$(DVIPS) -f $(srcdir)/mailcrypt.dvi >$@
125
html: mailcrypt_toc.html
127
mailcrypt_toc.html: mailcrypt.texi
128
$(TEXI2HTML) -split_chapter $(srcdir)/mailcrypt.texi
131
cd $(srcdir) && etags $(SOURCES)
135
-rm -f *.aux *.cp *.cps *.fn *.ky *.log *.pg *.toc *.tp *.vr
141
-rm -f Makefile config.status config.cache config.log timer.el
144
${srcdir}/configure: configure.in
145
cd ${srcdir} && autoconf
147
Makefile: Makefile.in config.status
150
config.status: ${srcdir}/configure
151
./config.status --recheck
154
version=`perl -ne 'print $$1 if /defconst mc-version \"(.*)\"/' \
156
distname=mailcrypt-$$version; \
159
mkdir $$distname/tests; mkdir $$distname/tests/gpg-keys; \
160
mkdir $$distname/tests/gpg-testcases; \
161
mkdir $$distname/tests/remailer; \
162
for file in $(DISTFILES); do \
163
ln $$file $$distname/$$file; \
165
$(TAR) -chz -f $$distname.tar.gz $$distname; \