2 ## Our Makefile.am template for Makefile.in (and, eventually, Makefile)
4 ## Process this with automake to generate Makefile.in
7 ## We set this to get our autoconf macros in the m4 directory
8 ACLOCAL_AMFLAGS = -I m4
11 ## This is the default set of libraries all programs link against. Some
12 ## programs add extra libraries to this set, so they override this with
13 ## a program-specific LDADD variable. Note that in all of the cases today
14 ## LDADD is included in the program-specific LDADD since we want to add
15 ## to this list of libraries, not replace it.
20 ## These are used to create the default mhn.defaults config file
21 ## MHNSEARCHPATH is the default path to look for MIME content handlers
22 ## MHNSEARCHPROG is the script used to find the support programs
24 MHNSEARCHPATH = "$(PATH):/usr/demo/SOUND"
25 MHNSEARCHPROG = $(srcdir)/etc/mhn.find.sh
28 ## Automake doesn't let us install programs in $(libdir), so we create our
29 ## own directory prefix to use in the primary variable.
34 ## Stuff that should be cleaned via "make clean"
36 CLEANFILES = config/version.c sbr/sigmsg.h etc/mts.conf etc/sendfiles \
37 etc/mhn.defaults man/man.sed $(man_MANS)
40 ## Files that need to be built before everything else
42 BUILT_SOURCES = sbr/sigmsg.h
45 ## This is a list of all programs that get installed in the "bin" directory
46 ## Note that primary difference between "PROGRAMS" and "SCRIPTS" is that
47 ## the latter do not have $(EXEEXT) added on the end.
49 bin_PROGRAMS = uip/ali uip/anno uip/burst uip/comp uip/dist uip/flist \
50 uip/folder uip/forw uip/inc uip/install-mh uip/mark \
51 uip/mhbuild uip/mhlist uip/mhmail uip/mhn uip/mhparam \
52 uip/mhpath uip/mhshow uip/mhstore uip/msgchk uip/msh uip/new \
53 uip/packf uip/pick uip/prompter uip/refile uip/repl uip/rmf \
54 uip/rmm uip/scan uip/send uip/show uip/sortm uip/whatnow \
57 bin_SCRIPTS = etc/sendfiles
60 ## This is all programs that get installed in the "lib" directory
62 auxexec_PROGRAMS = uip/ap uip/conflict uip/dp uip/fmtdump uip/mhl uip/post \
63 uip/rcvdist uip/rcvpack uip/rcvstore uip/rcvtty uip/slocal \
64 uip/spost uip/viamail uip/mhtest
67 ## Internal libraries that we don't create as part of the build process
70 noinst_LIBRARIES = sbr/libmh.a mts/libmts.a
73 ## These are all of our header files. Right now we don't install any of
74 ## them, but that might change in the future.
76 noinst_HEADERS = h/addrsbr.h h/aliasbr.h h/crawl_folders.h h/dropsbr.h \
77 h/fmt_compile.h h/fmt_scan.h h/m_setjmp.h h/md5.h h/mf.h \
78 h/mh.h h/mhcachesbr.h h/mhparse.h h/mime.h h/msh.h \
79 h/mts.h h/nmh.h h/picksbr.h h/popsbr.h h/prototypes.h \
80 h/rcvmail.h h/scansbr.h h/signals.h h/tws.h h/utils.h \
81 h/vmhsbr.h mts/smtp/smtp.h
84 ## Extra files we need to install in various places
86 dist_sysconf_DATA = etc/MailAliases etc/components etc/digestcomps \
87 etc/distcomps etc/forwcomps etc/mhl.body etc/mhl.digest \
88 etc/mhl.format etc/mhl.forward etc/mhl.headers \
89 etc/mhl.reply etc/rcvdistcomps etc/rcvdistcomps.outbox \
90 etc/replcomps etc/replgroupcomps etc/scan.MMDDYY \
91 etc/scan.YYYYMMDD etc/scan.default etc/scan.mailx \
92 etc/scan.nomime etc/scan.size etc/scan.time \
93 etc/scan.timely etc/scan.unseen
96 ## The same as above, but we don't include these in the distribution
97 ## (because they're generated at compile time)
99 sysconf_DATA = etc/mhn.defaults etc/mts.conf
101 dist_doc_DATA = COPYRIGHT VERSION docs/COMPLETION-BASH docs/COMPLETION-TCSH \
102 docs/COMPLETION-ZSH docs/DIFFERENCES docs/FAQ \
103 docs/MAIL.FILTERING docs/MAILING-LISTS docs/README-ATTACHMENTS \
104 docs/README-HOOKS docs/README.about docs/README.SASL \
105 docs/README.developers docs/README.manpages docs/TODO
111 man_MANS = man/ali.1 man/anno.1 man/ap.8 man/burst.1 man/comp.1 \
112 man/conflict.8 man/dist.1 man/dp.8 man/flist.1 man/flists.1 \
113 man/fmtdump.8 man/fnext.1 man/folder.1 man/folders.1 \
114 man/forw.1 man/fprev.1 man/inc.1 man/install-mh.1 man/mark.1 \
115 man/mh-alias.5 man/mh-chart.1 man/mh-draft.5 man/mh-format.5 \
116 man/mh-mail.5 man/mh-profile.5 man/mh-sequence.5 \
117 man/mh-tailor.5 man/mhbuild.1 man/mhl.1 man/mhlist.1 \
118 man/mhmail.1 man/mhn.1 man/mhparam.1 man/mhpath.1 \
119 man/mhshow.1 man/mhstore.1 man/msgchk.1 man/msh.1 \
120 man/mts.conf.5 man/new.1 man/next.1 man/nmh.1 man/packf.1 \
121 man/pick.1 man/post.8 man/prev.1 man/prompter.1 man/rcvdist.1 \
122 man/rcvpack.1 man/rcvstore.1 man/rcvtty.1 man/refile.1 \
123 man/repl.1 man/rmf.1 man/rmm.1 man/scan.1 man/send.1 \
124 man/sendfiles.1 man/show.1 man/slocal.1 man/sortm.1 man/unseen.1 \
125 man/whatnow.1 man/whom.1
128 ## Files we need to include in the distribution which aren't found by
129 ## Automake using the automatic rules
132 EXTRA_DIST = config/version.sh sbr/sigmsg.awk etc/mts.conf.in etc/sendfiles.in \
133 etc/mhn.defaults.sh $(MHNSEARCHPROG) nmh.spec DATE \
134 docs/ChangeLog_MH-3_to_MH-6.6 \
135 docs/ChangeLog_MH-6.7.0_to_MH-6.8.4.html \
136 man/ali.man man/anno.man man/ap.man man/burst.man man/comp.man \
137 man/conflict.man man/dist.man man/dp.man man/flist.man \
138 man/flists.man man/fmtdump.man man/fnext.man man/folder.man \
139 man/folders.man man/forw.man man/fprev.man man/inc.man \
140 man/install-mh.man man/mark.man man/mh-alias.man man/mh-chart.man \
141 man/mh-draft.man man/mh-format.man man/mh-mail.man \
142 man/mh-profile.man man/mh-sequence.man man/mh-tailor.man \
143 man/mhbuild.man man/mhl.man man/mhlist.man man/mhmail.man \
144 man/mhn.man man/mhparam.man man/mhpath.man man/mhshow.man \
145 man/mhstore.man man/msgchk.man man/msh.man man/mts.conf.man \
146 man/new.man man/next.man man/nmh.man man/packf.man man/pick.man \
147 man/post.man man/prev.man man/prompter.man man/rcvdist.man \
148 man/rcvpack.man man/rcvstore.man man/rcvtty.man man/refile.man \
149 man/repl.man man/rmf.man man/rmm.man man/scan.man man/send.man \
150 man/sendfiles.man man/show.man man/slocal.man man/sortm.man \
151 man/unseen.man man/whatnow.man man/whom.man
154 ## These are all of the definitions for each of the programs listed above.
155 ## They describe the source files that make up the programs and any particular
156 ## overrides that are used to select different library options from the
159 ## Note that a few programs link in extra files (specifically, popsbr.c)
160 ## if POP3 support is compiled in. An Automake conditional is used for
164 uip_ali_SOURCES = uip/ali.c uip/aliasbr.c
166 uip_anno_SOURCES = uip/anno.c uip/annosbr.c
168 uip_burst_SOURCES = uip/burst.c
170 uip_comp_SOURCES = uip/comp.c uip/whatnowproc.c uip/whatnowsbr.c uip/sendsbr.c \
171 uip/annosbr.c uip/distsbr.c
173 uip_dist_SOURCES = uip/dist.c uip/whatnowproc.c uip/whatnowsbr.c uip/sendsbr.c \
174 uip/annosbr.c uip/distsbr.c
176 uip_flist_SOURCES = uip/flist.c
178 uip_folder_SOURCES = uip/folder.c
180 uip_forw_SOURCES = uip/forw.c uip/whatnowproc.c uip/whatnowsbr.c uip/sendsbr.c \
181 uip/annosbr.c uip/distsbr.c
182 uip_forw_LDADD = $(LDADD) $(ICONVLIB)
184 uip_inc_SOURCES = uip/inc.c uip/scansbr.c uip/dropsbr.c uip/termsbr.c
186 uip_inc_SOURCES += uip/popsbr.c
188 uip_inc_LDADD = $(LDADD) $(TERMLIB) $(ICONVLIB) $(SASLLIB)
190 uip_install_mh_SOURCES = uip/install-mh.c
192 uip_mark_SOURCES = uip/mark.c
194 uip_mhbuild_SOURCES = uip/mhbuild.c uip/mhbuildsbr.c uip/mhcachesbr.c \
195 uip/mhlistsbr.c uip/mhoutsbr.c uip/mhmisc.c \
196 uip/mhfree.c uip/mhparse.c uip/termsbr.c uip/md5.c
197 uip_mhbuild_LDADD = $(LDADD) $(TERMLIB)
199 uip_mhlist_SOURCES = uip/mhlist.c uip/mhparse.c uip/mhcachesbr.c \
200 uip/mhlistsbr.c uip/mhmisc.c uip/mhfree.c uip/termsbr.c \
202 uip_mhlist_LDADD = $(LDADD) $(TERMLIB)
204 uip_mhmail_SOURCES = uip/mhmail.c
206 uip_mhn_SOURCES = uip/mhn.c uip/mhparse.c uip/mhcachesbr.c uip/mhshowsbr.c \
207 uip/mhlistsbr.c uip/mhstoresbr.c uip/mhmisc.c uip/mhfree.c \
208 uip/termsbr.c uip/md5.c
209 uip_mhn_LDADD = $(LDADD) $(TERMLIB)
211 uip_mhparam_SOURCES = uip/mhparam.c
213 uip_mhpath_SOURCES = uip/mhpath.c
215 uip_mhshow_SOURCES = uip/mhshow.c uip/mhparse.c uip/mhcachesbr.c \
216 uip/mhshowsbr.c uip/mhlistsbr.c uip/mhmisc.c \
217 uip/mhfree.c uip/termsbr.c uip/md5.c
218 uip_mhshow_LDADD = $(LDADD) $(TERMLIB)
220 uip_mhstore_SOURCES = uip/mhstore.c uip/mhparse.c uip/mhcachesbr.c \
221 uip/mhshowsbr.c uip/mhlistsbr.c uip/mhstoresbr.c \
222 uip/mhmisc.c uip/mhfree.c uip/termsbr.c uip/md5.c
223 uip_mhstore_LDADD = $(LDADD) $(TERMLIB)
225 uip_msgchk_SOURCES = uip/msgchk.c
227 uip_msgchk_SOURCES += uip/popsbr.c
229 uip_msgchk_LDADD = $(LDADD) $(SASLLIB)
231 uip_msh_SOURCES = uip/msh.c uip/mshcmds.c uip/vmhsbr.c uip/picksbr.c \
232 uip/scansbr.c uip/dropsbr.c uip/mhlsbr.c uip/termsbr.c
233 uip_msh_LDADD = $(LDADD) $(TERMLIB) $(ICONVLIB)
235 uip_new_SOURCES = uip/new.c
237 uip_packf_SOURCES = uip/packf.c uip/dropsbr.c
239 uip_pick_SOURCES = uip/pick.c uip/picksbr.c
241 uip_prompter_SOURCES = uip/prompter.c
243 uip_refile_SOURCES = uip/refile.c
245 uip_repl_SOURCES = uip/repl.c uip/replsbr.c uip/whatnowproc.c \
246 uip/whatnowsbr.c uip/sendsbr.c uip/annosbr.c uip/distsbr.c
247 uip_repl_LDADD = $(LDADD) $(ICONVLIB)
249 uip_rmf_SOURCES = uip/rmf.c
251 uip_rmm_SOURCES = uip/rmm.c
253 uip_scan_SOURCES = uip/scan.c uip/scansbr.c uip/termsbr.c
254 uip_scan_LDADD = $(LDADD) $(TERMLIB) $(ICONVLIB)
256 uip_send_SOURCES = uip/send.c uip/sendsbr.c uip/annosbr.c uip/distsbr.c
258 uip_show_SOURCES = uip/show.c uip/mhlsbr.c uip/termsbr.c
259 uip_show_LDADD = $(LDADD) $(TERMLIB) $(ICONVLIB)
261 uip_sortm_SOURCES = uip/sortm.c
263 uip_whatnow_SOURCES = uip/whatnow.c uip/whatnowsbr.c uip/sendsbr.c \
264 uip/annosbr.c uip/distsbr.c
266 uip_whom_SOURCES = uip/whom.c uip/distsbr.c
269 ## Programs definitions for all utilities that end up in $(libdir)
272 uip_ap_SOURCES = uip/ap.c uip/termsbr.c
273 uip_ap_LDADD = $(LDADD) $(TERMLIB) $(ICONVLIB)
275 uip_conflict_SOURCES = uip/conflict.c uip/aliasbr.c
277 uip_dp_SOURCES = uip/dp.c uip/termsbr.c
278 uip_dp_LDADD = $(LDADD) $(TERMLIB) $(ICONVLIB)
280 uip_fmtdump_SOURCES = uip/fmtdump.c
281 uip_fmtdump_LDADD = $(LDADD) $(ICONVLIB)
283 uip_mhl_SOURCES = uip/mhl.c uip/mhlsbr.c uip/termsbr.c
284 uip_mhl_LDADD = $(LDADD) $(TERMLIB) $(ICONVLIB)
286 uip_mhtest_SOURCES = uip/mhtest.c uip/mhparse.c uip/mhcachesbr.c \
287 uip/mhoutsbr.c uip/mhmisc.c uip/mhfree.c \
288 uip/termsbr.c uip/md5.c
289 uip_mhtest_LDADD = $(LDADD) $(TERMLIB)
291 uip_post_SOURCES = uip/post.c uip/aliasbr.c
292 uip_post_LDADD = mts/libmts.a $(LDADD) $(SASLLIB)
294 uip_rcvdist_SOURCES = uip/rcvdist.c uip/distsbr.c
295 uip_rcvdist_LDADD = $(LDADD) $(ICONVLIB)
297 uip_rcvpack_SOURCES = uip/rcvpack.c uip/dropsbr.c
299 uip_rcvstore_SOURCES = uip/rcvstore.c
301 uip_rcvtty_SOURCES = uip/rcvtty.c uip/scansbr.c uip/termsbr.c
302 uip_rcvtty_LDADD = $(LDADD) $(TERMLIB) $(ICONVLIB)
304 uip_slocal_SOURCES = uip/slocal.c uip/aliasbr.c uip/dropsbr.c
305 uip_slocal_LDADD = $(LDADD) $(NDBM_LIBS)
307 uip_spost_SOURCES = uip/spost.c uip/aliasbr.c
309 uip_viamail_SOURCES = uip/viamail.c uip/mhmisc.c uip/mhoutsbr.c uip/sendsbr.c \
310 uip/annosbr.c uip/distsbr.c
313 ## Our rebuild rules for files that aren't built via the normal mechanisms
315 config/version.c: Makefile
316 sh $(srcdir)/config/version.sh $(VERSION) > $@
318 sbr/sigmsg.h: Makefile $(srcdir)/sbr/sigmsg.awk $(SIGNAL_H)
319 $(AWK) -f $(srcdir)/sbr/sigmsg.awk $(SIGNAL_H) > $@
321 etc/mts.conf: $(srcdir)/etc/mts.conf.in Makefile
323 $(SED) -e 's,%mts%,$(MTS),' \
324 -e 's,%mailspool%,$(mailspool),' \
325 -e 's,%etcdir%,$(sysconfdir),' \
326 -e 's,%masquerade%,$(masquerade),' \
327 -e 's,%smtpservers%,$(smtpservers),' \
328 < $(srcdir)/etc/mts.conf.in > $@
330 etc/mhn.defaults: $(srcdir)/etc/mhn.defaults.sh $(MHNSEARCHPROG)
332 $(srcdir)/etc/mhn.defaults.sh $(MHNSEARCHPATH) $(MHNSEARCHPROG) > $@
334 etc/sendfiles: $(srcdir)/etc/sendfiles.in Makefile
336 $(SED) -e 's,%libdir%,$(libdir),' < $(srcdir)/etc/sendfiles.in > $@
339 ## This rule gets called at "make install" time; we use it to create links
340 ## between different programs.
343 rm -f $(DESTDIR)/$(bindir)/flists$(EXEEXT)
344 rm -f $(DESTDIR)/$(bindir)/folders$(EXEEXT)
345 rm -f $(DESTDIR)/$(bindir)/fnext$(EXEEXT)
346 rm -f $(DESTDIR)/$(bindir)/fprev$(EXEEXT)
347 rm -f $(DESTDIR)/$(bindir)/unseen$(EXEEXT)
348 rm -f $(DESTDIR)/$(bindir)/prev$(EXEEXT)
349 rm -f $(DESTDIR)/$(bindir)/next$(EXEEXT)
350 ln $(DESTDIR)/$(bindir)/flist$(EXEEXT) $(DESTDIR)/$(bindir)/flists$(EXEEXT)
351 ln $(DESTDIR)/$(bindir)/folder$(EXEEXT) $(DESTDIR)/$(bindir)/folders$(EXEEXT)
352 ln $(DESTDIR)/$(bindir)/new$(EXEEXT) $(DESTDIR)/$(bindir)/fnext$(EXEEXT)
353 ln $(DESTDIR)/$(bindir)/new$(EXEEXT) $(DESTDIR)/$(bindir)/fprev$(EXEEXT)
354 ln $(DESTDIR)/$(bindir)/new$(EXEEXT) $(DESTDIR)/$(bindir)/unseen$(EXEEXT)
355 ln $(DESTDIR)/$(bindir)/show$(EXEEXT) $(DESTDIR)/$(bindir)/prev$(EXEEXT)
356 ln $(DESTDIR)/$(bindir)/show$(EXEEXT) $(DESTDIR)/$(bindir)/next$(EXEEXT)
359 ln $(DESTDIR)/$(man5dir)/mh-profile.5 $(DESTDIR)/$(man5dir)/mh_profile.5
361 ## Make sure we remove those links at uninstall time
364 rm -f $(DESTDIR)/$(bindir)/flists$(EXEEXT)
365 rm -f $(DESTDIR)/$(bindir)/folders$(EXEEXT)
366 rm -f $(DESTDIR)/$(bindir)/fnext$(EXEEXT)
367 rm -f $(DESTDIR)/$(bindir)/fprev$(EXEEXT)
368 rm -f $(DESTDIR)/$(bindir)/unseen$(EXEEXT)
369 rm -f $(DESTDIR)/$(bindir)/prev$(EXEEXT)
370 rm -f $(DESTDIR)/$(bindir)/next$(EXEEXT)
371 rm -f $(DESTDIR)/$(man5dir)/mh_profile.5
374 ## Our rules to build our internal libraries (libmh.a, libmts.a)
376 sbr_libmh_a_SOURCES = sbr/addrsbr.c sbr/ambigsw.c sbr/atooi.c sbr/brkstring.c \
377 sbr/check_charset.c sbr/client.c sbr/closefds.c \
378 sbr/concat.c sbr/context_del.c sbr/context_find.c \
379 sbr/context_foil.c sbr/context_read.c \
380 sbr/context_replace.c sbr/context_save.c \
381 sbr/copy.c sbr/copyip.c sbr/cpydata.c \
382 sbr/cpydgst.c sbr/crawl_folders.c sbr/discard.c \
383 sbr/done.c sbr/dtime.c sbr/dtimep.l \
384 sbr/error.c sbr/ext_hook.c sbr/fdcompare.c \
385 sbr/folder_addmsg.c sbr/folder_delmsgs.c \
386 sbr/folder_free.c sbr/folder_pack.c \
387 sbr/folder_read.c sbr/folder_realloc.c sbr/gans.c \
388 sbr/getans.c sbr/getanswer.c sbr/getarguments.c \
389 sbr/getcpy.c sbr/getfolder.c sbr/getpass.c \
390 sbr/fmt_addr.c sbr/fmt_compile.c sbr/fmt_new.c \
391 sbr/fmt_rfc2047.c sbr/fmt_scan.c sbr/lock_file.c \
392 sbr/m_atoi.c sbr/m_backup.c sbr/m_convert.c \
393 sbr/m_draft.c sbr/m_getfld.c sbr/m_gmprot.c \
394 sbr/m_maildir.c sbr/m_name.c sbr/m_setjmp.c \
395 sbr/makedir.c sbr/mts.c sbr/norm_charmap.c sbr/path.c \
396 sbr/peekc.c sbr/pidwait.c sbr/pidstatus.c \
397 sbr/print_help.c sbr/print_sw.c sbr/print_version.c \
398 sbr/push.c sbr/putenv.c sbr/refile.c sbr/remdir.c \
399 sbr/r1bindex.c sbr/readconfig.c sbr/ruserpass.c \
400 sbr/seq_add.c sbr/seq_bits.c sbr/seq_del.c \
401 sbr/seq_getnum.c sbr/seq_list.c sbr/seq_nameok.c \
402 sbr/seq_print.c sbr/seq_read.c sbr/seq_save.c \
403 sbr/seq_setcur.c sbr/seq_setprev.c sbr/seq_setunseen.c \
404 sbr/showfile.c sbr/signals.c sbr/smatch.c \
405 sbr/snprintb.c sbr/ssequal.c sbr/strcasecmp.c \
406 sbr/strindex.c sbr/trimcpy.c sbr/uprf.c sbr/vfgets.c \
407 sbr/fmt_def.c sbr/m_msgdef.c sbr/mf.c sbr/utils.c \
408 sbr/m_mktemp.c config/config.c config/version.c
410 sbr_libmh_a_CPPFLAGS = -I./sbr -DNMHETCDIR='"$(sysconfdir)"' \
411 -DMAILSPOOL='"$(mailspool)"' \
412 -DSENDMAILPATH='"$(sendmailpath)"' -DNMHBINDIR='"$(bindir)"' \
413 -DNMHLIBDIR='"$(libdir)"' \
414 -DDEFAULT_EDITOR='"$(default_editor)"' \
415 -DDEFAULT_PAGER='"$(default_pager)"'
417 mts_libmts_a_SOURCES = mts/smtp/hosts.c mts/smtp/smtp.c
420 ## Our rules for generating man pages (both the rule for man.sed and
421 ## the implicit rules for man page generation).
428 $(man_MANS): man/man.sed
430 man/man.sed: Makefile
431 echo 's,%nmhwarning%,THIS FILE HAS BEEN AUTOMATICALLY GENERATED. DO NOT EDIT.,g' > $@
432 echo 's,%nmhversion%,nmh-$(VERSION),g' >> $@
433 echo 's,%nmhdate%,$(DATE),g' >> $@
434 echo 's,%bindir%,$(bindir),g' >> $@
435 echo 's,%etcdir%,$(sysconfdir),g' >> $@
436 echo 's,%libdir%,$(libdir),g' >> $@
437 echo 's,%mandir%,$(mandir),g' >> $@
438 echo 's,%mailspool%,$(mailspool),g' >> $@
439 echo 's,%sendmailpath%,$(sendmailpath),g' >> $@
440 echo 's,%default_editor%,$(default_editor),g' >> $@
441 echo 's,%default_pager%,$(default_pager),g' >> $@
442 echo 's,%manext1%,$(manext1),g' >> $@
443 echo 's,%manext5%,$(manext5),g' >> $@
444 echo 's,%manext8%,$(manext8),g' >> $@
446 echo '/^%nmhbeginpop%/d;/^%nmhendpop%/d' >> $@
448 echo '/^%nmhbeginpop%/,/^%nmhendpop%/d' >> $@
450 echo '/%components%/r $(top_srcdir)/etc/components' >> $@
451 echo ' s,%components%,,g' >> $@
452 echo '/%distcomps%/r $(top_srcdir)/etc/distcomps' >> $@
453 echo ' s,%distcomps%,,g' >> $@
454 echo '/%forwcomps%/r $(top_srcdir)/etc/forwcomps' >> $@
455 echo ' s,%forwcomps%,,g' >> $@
456 echo '/%mhl_forward%/r $(top_srcdir)/etc/mhl.forward' >> $@
457 echo ' s,%mhl_forward%,,g' >> $@
458 echo '/%mhl_format%/r $(top_srcdir)/etc/mhl.format' >> $@
459 echo ' s,%mhl_format%,,g' >> $@
460 echo '/%mhl_reply%/r $(top_srcdir)/etc/mhl.reply' >> $@
461 echo ' s,%mhl_reply%,,g' >> $@
464 $(SED) -f man/man.sed $< > $@
467 $(SED) -f man/man.sed $< > $@
470 $(SED) -f man/man.sed $< > $@
473 ## Our RPM build target
476 rpm: $(DIST_ARCHIVES)
477 @test -d $(rpmdir)/SOURCES || $(MKDIR_P) $(rpmdir)/SOURCES
478 @test -d $(rpmdir)/SPECS || $(MKDIR_P) $(rpmdir)/SPECS
479 @mv -f $(DIST_ARCHIVES) $(rpmdir)/SOURCES
480 @cp -p VERSION $(rpmdir)/SOURCES
481 @cp -p nmh.spec $(rpmdir)/SPECS
482 @rpmbuild --define '_topdir $(rpmdir)' \
483 --define '_tmppath %{_topdir}/TMP' \
484 -ba $(rpmdir)/SPECS/nmh.spec