]> diplodocus.org Git - nmh/blob - man/Makefile.in
Cope with sasl_decode64() returning SASL_CONTINUE as well as SASL_OK.
[nmh] / man / Makefile.in
1 #
2 # Makefile for man subdirectory
3 #
4 # $Id$
5 #
6
7 VERSION = @VERSION@
8 DATE = @DATE@
9
10 SHELL = /bin/sh
11
12 top_srcdir = @top_srcdir@
13 srcdir = @srcdir@
14 VPATH = @srcdir@
15
16 prefix = @prefix@
17 exec_prefix = @exec_prefix@
18 bindir = @bindir@
19 libdir = @libdir@
20 etcdir = @sysconfdir@
21 mandir = @mandir@
22 manext1 = 1
23 manext5 = 5
24 manext8 = 8
25
26 mailspool = @mailspool@
27 sendmailpath = @sendmailpath@
28
29 default_editor = @editorpath@
30 default_pager = @pagerpath@
31
32 INSTALL = @INSTALL@
33 INSTALL_DATA = @INSTALL_DATA@
34
35 SED = sed
36 SEDMAN = $(SED) -f man.sed $< > $@
37
38 # sed line for editing pop information in man pages
39 POPSED = @POPSED@
40
41 .SUFFIXES:
42 .SUFFIXES: .man .$(manext1) .$(manext5) .$(manext8)
43
44 .man.$(manext1):
45 $(SEDMAN)
46
47 .man.$(manext5):
48 $(SEDMAN)
49
50 .man.$(manext8):
51 $(SEDMAN)
52
53 # man pages to install in $(mandir)/$(manext1)
54 MAN1SRC = ali. anno. burst. comp. \
55 dist. flist. flists. folder. folders. \
56 forw. inc. install-mh. mark. mh-chart. \
57 nmh. mhbuild. mhl. mhlist. mhmail. \
58 mhn. mhparam. mhpath. mhshow. \
59 mhstore. msgchk. msh. \
60 next. packf. pick. prev. \
61 prompter. rcvdist. rcvpack. \
62 rcvstore. rcvtty. refile. \
63 repl. rmf. rmm. scan. \
64 send. sendfiles. show. slocal. \
65 sortm. whatnow. whom.
66
67 MAN5SRC = mh-alias. mh-draft. mh-format. \
68 mh-mail. mh-profile. mh-sequence. \
69 mh-tailor. mts.conf.
70
71 MAN8SRC = ap. conflict. dp. fmtdump. \
72 post.
73
74 MAN1 = $(MAN1SRC:.=.$(manext1))
75 MAN5 = $(MAN5SRC:.=.$(manext5))
76 MAN8 = $(MAN8SRC:.=.$(manext8))
77
78 # Since vmh is not built or distributed, neither should vmh.1 be
79 # MANEXTRA = vmh.
80
81 # source for man pages
82 DIST_MANSRC = $(MAN1SRC) $(MAN5SRC) $(MAN8SRC)
83 DIST_MAN = $(DIST_MANSRC:.=.man)
84
85 # auxiliary files
86 AUX = Makefile.in
87
88 # all files in this directory included in the distribution
89 DIST = $(DIST_MAN) $(AUX)
90
91 # ========= DEFAULT TARGET ==========
92
93 all: $(MAN1) $(MAN5) $(MAN8)
94
95 $(MAN1) $(MAN5) $(MAN8): man.sed
96
97 # create the sed file for building man pages
98 man.sed: Makefile
99 echo 's,%nmhwarning%,THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.,g' > $@
100 echo 's,%nmhversion%,nmh-$(VERSION),g' >> $@
101 echo 's,%nmhdate%,$(DATE),g' >> $@
102 echo 's,%bindir%,$(bindir),g' >> $@
103 echo 's,%etcdir%,$(etcdir),g' >> $@
104 echo 's,%libdir%,$(libdir),g' >> $@
105 echo 's,%mandir%,$(mandir),g' >> $@
106 echo 's,%mailspool%,$(mailspool),g' >> $@
107 echo 's,%sendmailpath%,$(sendmailpath),g' >> $@
108 echo 's,%default_editor%,$(default_editor),g' >> $@
109 echo 's,%default_pager%,$(default_pager),g' >> $@
110 echo 's,%manext1%,$(manext1),g' >> $@
111 echo 's,%manext5%,$(manext5),g' >> $@
112 echo 's,%manext8%,$(manext8),g' >> $@
113 echo '$(POPSED)' >> $@
114 echo '/%components%/r $(top_srcdir)/etc/components' >> $@
115 echo ' s,%components%,,g' >> $@
116 echo '/%distcomps%/r $(top_srcdir)/etc/distcomps' >> $@
117 echo ' s,%distcomps%,,g' >> $@
118 echo '/%forwcomps%/r $(top_srcdir)/etc/forwcomps' >> $@
119 echo ' s,%forwcomps%,,g' >> $@
120 echo '/%mhl_forward%/r $(top_srcdir)/etc/mhl.forward' >> $@
121 echo ' s,%mhl_forward%,,g' >> $@
122 echo '/%mhl_format%/r $(top_srcdir)/etc/mhl.format' >> $@
123 echo ' s,%mhl_format%,,g' >> $@
124 echo '/%mhl_reply%/r $(top_srcdir)/etc/mhl.reply' >> $@
125 echo ' s,%mhl_reply%,,g' >> $@
126
127 # ========= INSTALL TARGETS =========
128
129 install: install-man1 install-man5 install-man8
130
131 # install the man pages in man1
132 install-man1:
133 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext1)
134 for file in $(MAN1); do \
135 $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$(manext1) ; \
136 done
137
138 # install the man pages in man5
139 install-man5:
140 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext5)
141 for file in $(MAN5); do \
142 $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$(manext5) ; \
143 done
144 if [ ! -f $(DESTDIR)$(mandir)/man$(manext5)/mh_profile.$(manext5) ] ; then \
145 ( cd $(DESTDIR)$(mandir)/man$(manext5) ; ln mh-profile.$(manext5) \
146 mh_profile.$(manext5) ) \
147 fi
148
149 # install the man pages in man8
150 install-man8:
151 $(top_srcdir)/mkinstalldirs $(DESTDIR)$(mandir)/man$(manext8)
152 for file in $(MAN8); do \
153 $(INSTALL_DATA) $$file $(DESTDIR)$(mandir)/man$(manext8) ; \
154 done
155
156 # ========= UNINSTALL TARGETS =========
157
158 uninstall: uninstall-man1 uninstall-man5 uninstall-man8
159
160 # uninstall the man pages in man1
161 uninstall-man1:
162 for file in $(MAN1); do \
163 rm -f $(DESTDIR)$(mandir)/man$(manext1)/$$file; \
164 done
165
166 # uninstall the man pages in man5
167 uninstall-man5:
168 for file in $(MAN5); do \
169 rm -f $(DESTDIR)$(mandir)/man$(manext5)/$$file; \
170 done
171
172 # uninstall the man pages in man8
173 uninstall-man8:
174 for file in $(MAN8); do \
175 rm -f $(DESTDIR)$(mandir)/man$(manext8)/$$file; \
176 done
177
178 # ========== DEPENDENCIES FOR CLEANUP ==========
179
180 mostlyclean:
181 rm -f *~
182
183 clean: mostlyclean
184 rm -f man.sed *.$(manext1) *.$(manext5) *.$(manext8)
185
186 distclean: clean
187 rm -f Makefile
188
189 realclean: distclean
190
191 superclean: realclean
192
193 lint:
194
195 # ========== DEPENDENCIES FOR MAINTENANCE ==========
196
197 subdir = man
198
199 Makefile: Makefile.in ../config.status
200 cd .. && ./config.status $(subdir)/$@
201
202 distdir = ../`cat ../distname`/$(subdir)
203 nmhdist: $(DIST)
204 @echo "Copying distribution files in $(subdir)"
205 @for file in $(DIST); do \
206 cp -p $(srcdir)/$$file $(distdir); \
207 done
208