blob: db9985f4bb35ef396887b2f3718be4aeb9b38b8a (
plain)
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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
|
# $Id$
SHELL=/bin/sh
PACKAGE=@PACKAGE@
VERSION=@VERSION@
prefix=@prefix@
exec_prefix=@exec_prefix@
bindir=@bindir@
libdir=@libdir@
mandir=@mandir@
sharedir=@sharedir@
srcdir=@srcdir@
docdir=@docdir@
includedir = @includedir@
top_srcdir=@top_srcdir@
top_builddir=..
VPATH=@srcdir@
@SET_MAKE@
INSTALL=@INSTALL@
CC=@CC@
CPP=@CPP@
XCPPFLAGS=-I. @CPPFLAGS@
CFLAGS=@CFLAGS@ -DSHAREDIR=\"$(sharedir)\" $(XCPPFLAGS)
LDFLAGS=@LDFLAGS@
subdir = doc
CPPFLAGS = @CPPFLAGS@
DEFS=-DSHAREDIR=\"$(sharedir)\" -DSYSCONFDIR=\"$(sysconfdir)\" \
-DBINDIR=\"$(bindir)\" -DHAVE_CONFIG_H=1
INCLUDES=-I. -I.. -I$(includedir) -I$(top_srcdir)
MAKEDOC_CPP=$(CPP) $(INCLUDES) $(DEFS) $(CPPFLAGS) -D_MAKEDOC -C
DISTFILES = Makefile.in dotlock.man \
mutt.man \
PGP-Notes.txt \
applying-patches.txt \
devel-notes.txt \
manual.txt \
muttrc.man.head \
muttrc.man.tail \
muttrc.man \
manual.sgml.head \
manual.sgml.tail \
manual.sgml \
manual.html \
stamp-doc-sgml \
stamp-doc-man
srcdir_DOCFILES = PGP-Notes.txt applying-patches.txt \
devel-notes.txt
topsrcdir_DOCFILES = COPYRIGHT GPL INSTALL ChangeLog \
README NEWS TODO README.SECURITY
all: try-html try-txt muttrc.man
try-html:
test -f manual.html || $(MAKE) manual.html || cp $(srcdir)/manual*.html ./
try-txt:
test -f manual.txt || $(MAKE) manual.txt || cp $(srcdir)/manual.txt ./
install: all
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man1
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man5
$(INSTALL) -m 644 $(srcdir)/mutt.man $(DESTDIR)$(mandir)/man1/mutt.1
$(INSTALL) -m 644 $(srcdir)/dotlock.man \
$(DESTDIR)$(mandir)/man1/mutt_dotlock.1
$(INSTALL) -m 644 muttrc.man $(DESTDIR)$(mandir)/man5/muttrc.5
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)
for f in $(srcdir_DOCFILES) ; do \
$(INSTALL) -m 644 $(srcdir)/$$f $(DESTDIR)$(docdir) ; \
done
for f in $(topsrcdir_DOCFILES) ; do \
$(INSTALL) -m 644 $(top_srcdir)/$$f $(DESTDIR)$(docdir) ; \
done
$(INSTALL) -m 644 manual.txt $(DESTDIR)$(docdir)
$(top_srcdir)/mkinstalldirs $(DESTDIR)$(docdir)/html
for file in manual*.html ; do \
$(INSTALL) -m 644 $$file $(DESTDIR)$(docdir)/html/ ;\
done
uninstall:
-rm -f $(DESTDIR)$(mandir)/man1/mutt.1
-rm -f $(DESTDIR)$(mandir)/man1/mutt_dotlock.1
-rm -f $(DESTDIR)$(mandir)/man5/muttrc.5
-rm -rf $(DESTDIR)$(docdir)
manual.txt: manual.sgml
sgml2txt -c latin manual
manual.html: manual.sgml
sgml2html manual
clean:
rm -f *~ *.html *.orig *.rej stamp-doc-sgml stamp-doc-man
clean-real:
rm -f manual.txt
maintainer-clean: clean clean-real distclean
distclean: clean
rm -f Makefile
Makefile: Makefile.in ../config.status
cd .. \
&& CONFIG_FILES=$(subdir)/$@ CONFIG_HEADERS= $(SHELL) ./config.status
distdir = ../$(PACKAGE)-$(VERSION)/$(subdir)
dist distdir: Makefile $(DISTFILES)
for file in $(DISTFILES) ; do \
ln $(srcdir)/$$file $(distdir) 2> /dev/null \
|| cp -p $(srcdir)/$$file $(distdir); \
done
for file in $(srcdir)/manual-*.html ; do \
ln $$file $(distdir) 2> /dev/null \
|| cp -p $$file $(distdir) ; \
done
../makedoc: $(top_srcdir)/makedoc.c
(cd .. && $(MAKE) makedoc)
# hack around autoconf mixing up patterns.
at=@
update-doc: ../makedoc stamp-doc-sgml stamp-doc-man manual.txt manual.html
muttrc.man stamp-doc-man: ../makedoc $(top_srcdir)/init.h muttrc.man.head muttrc.man.tail
$(MAKEDOC_CPP) $(top_srcdir)/init.h | ../makedoc -m | \
cat $(srcdir)/muttrc.man.head - $(srcdir)/muttrc.man.tail\
> muttrc.man
touch stamp-doc-man
manual.sgml stamp-doc-sgml: ../makedoc $(top_srcdir)/init.h manual.sgml.head manual.sgml.tail $(top_srcdir)/VERSION
( sed -e "s/$(at)VERSION$(at)/`cat $(top_srcdir)/VERSION`/" $(srcdir)/manual.sgml.head ;\
$(MAKEDOC_CPP) $(top_srcdir)/init.h | ../makedoc -s ) | \
cat - $(srcdir)/manual.sgml.tail > manual.sgml
touch stamp-doc-sgml
|