Dropped old show(1) and renamed mhshow(1) to show(1).
[mmh] / man / Makefile.in
index 4ad5db8..27d3622 100644 (file)
@@ -16,6 +16,7 @@ exec_prefix = @exec_prefix@
 bindir      = @bindir@
 libdir      = @libdir@
 etcdir      = @sysconfdir@
+datarootdir = @datarootdir@
 mandir      = @mandir@
 manext1     = 1
 manext5     = 5
@@ -49,17 +50,17 @@ SEDMAN = $(SED) -f man.sed $< > $@
 
 # man pages to install in $(mandir)/$(manext1)
 MAN1SRC = ali. anno. burst. comp. dist. flist. flists. folder. folders.    \
-       forw. inc. mark. mh-chart. mhbuild. mhl. mhlist. mmh.               \
-       mhmail. mhparam. mhpath. mhshow. mhstore. msgchk. new. fnext.       \
+       forw. inc. mark. mhbuild. mhl. mhlist. mmh. mmhwrap.              \
+       mhmail. mhparam. mhpath. mhstore. msgchk. new. fnext.       \
        fprev. unseen. next. packf. pick. prev. prompter. rcvdist. rcvpack. \
        rcvstore. refile. repl. rmf. rmm. scan. send. sendfiles.    \
        show. slocal. sortm. whatnow.
 
 MAN5SRC = mh-alias. mh-format. mh-mail. mh-profile. mh-tailor.
 
-MAN7SRC = mmh-intro. mh-draft. mh-sequence. 
+MAN7SRC = mmh-intro. mh-chart. mh-draft. mh-sequence. 
 
-MAN8SRC = ap. conflict. dp. fmtdump. post.
+MAN8SRC = spost. ap. dp. fmtdump.
 
 MAN1 = $(MAN1SRC:.=.$(manext1))
 MAN5 = $(MAN5SRC:.=.$(manext5))
@@ -73,44 +74,48 @@ DIST_MAN7 = $(MAN7SRC:.=.man7)
 DIST_MAN8 = $(MAN8SRC:.=.man8)
 
 # auxiliary files
-AUX = Makefile.in
+AUX = Makefile.in mh-chart-gen.sh
 
 # all files in this directory included in the distribution
 DIST = $(DIST_MAN1) $(DIST_MAN5) $(DIST_MAN7) $(DIST_MAN8) $(AUX)
+ALLPROGS = $(DIST_MAN1) $(DIST_MAN8)
 
 # ========= DEFAULT TARGET ==========
 
 all: $(MAN1) $(MAN5) $(MAN7) $(MAN8)
 
+mh-chart.man7: $(ALLPROGS)
+       $(srcdir)/mh-chart-gen.sh $(ALLPROGS) >$@
+
 $(MAN1) $(MAN5) $(MAN7) $(MAN8): man.sed
 
 # create the sed file for building man pages
 man.sed: Makefile
-       echo 's,%nmhwarning%,THIS FILE HAS BEEN AUTOMATICALLY GENERATED.  DO NOT EDIT.,g' > $@
-       echo 's,%nmhversion%,mmh-$(VERSION),g' >> $@
-       echo 's,%nmhdate%,$(DATE),g' >> $@
-       echo 's,%bindir%,$(bindir),g' >> $@
-       echo 's,%etcdir%,$(etcdir),g' >> $@
-       echo 's,%libdir%,$(libdir),g' >> $@
-       echo 's,%mandir%,$(mandir),g' >> $@
-       echo 's,%mailspool%,$(mailspool),g' >> $@
-       echo 's,%sendmailpath%,$(sendmailpath),g' >> $@
-       echo 's,%manext1%,$(manext1),g' >> $@
-       echo 's,%manext5%,$(manext5),g' >> $@
-       echo 's,%manext7%,$(manext7),g' >> $@
-       echo 's,%manext8%,$(manext8),g' >> $@
-       echo '/%components%/r $(top_srcdir)/etc/components' >> $@
-       echo ' s,%components%,,g' >> $@
-       echo '/%distcomps%/r $(top_srcdir)/etc/distcomps' >> $@
-       echo ' s,%distcomps%,,g' >> $@
-       echo '/%forwcomps%/r $(top_srcdir)/etc/forwcomps' >> $@
-       echo ' s,%forwcomps%,,g' >> $@
-       echo '/%mhl_forward%/r $(top_srcdir)/etc/mhl.forward' >> $@
-       echo ' s,%mhl_forward%,,g' >> $@
-       echo '/%mhl_format%/r $(top_srcdir)/etc/mhl.format' >> $@
-       echo ' s,%mhl_format%,,g' >> $@
-       echo '/%mhl_reply%/r $(top_srcdir)/etc/mhl.reply' >> $@
-       echo ' s,%mhl_reply%,,g' >> $@
+       @echo 's,%nmhwarning%,THIS FILE HAS BEEN AUTOMATICALLY GENERATED.  DO NOT EDIT.,g' > $@
+       @echo 's,%nmhversion%,mmh-$(VERSION),g' >> $@
+       @echo 's,%nmhdate%,$(DATE),g' >> $@
+       @echo 's,%bindir%,$(bindir),g' >> $@
+       @echo 's,%etcdir%,$(etcdir),g' >> $@
+       @echo 's,%libdir%,$(libdir),g' >> $@
+       @echo 's,%mandir%,$(mandir),g' >> $@
+       @echo 's,%mailspool%,$(mailspool),g' >> $@
+       @echo 's,%sendmailpath%,$(sendmailpath),g' >> $@
+       @echo 's,%manext1%,$(manext1),g' >> $@
+       @echo 's,%manext5%,$(manext5),g' >> $@
+       @echo 's,%manext7%,$(manext7),g' >> $@
+       @echo 's,%manext8%,$(manext8),g' >> $@
+       @echo '/%components%/r $(top_srcdir)/etc/components' >> $@
+       @echo ' s,%components%,,g' >> $@
+       @echo '/%distcomps%/r $(top_srcdir)/etc/distcomps' >> $@
+       @echo ' s,%distcomps%,,g' >> $@
+       @echo '/%forwcomps%/r $(top_srcdir)/etc/forwcomps' >> $@
+       @echo ' s,%forwcomps%,,g' >> $@
+       @echo '/%mhl_forward%/r $(top_srcdir)/etc/mhl.forward' >> $@
+       @echo ' s,%mhl_forward%,,g' >> $@
+       @echo '/%mhl_format%/r $(top_srcdir)/etc/mhl.format' >> $@
+       @echo ' s,%mhl_format%,,g' >> $@
+       @echo '/%mhl_reply%/r $(top_srcdir)/etc/mhl.reply' >> $@
+       @echo ' s,%mhl_reply%,,g' >> $@
 
 # ========= INSTALL TARGETS =========
 
@@ -178,7 +183,8 @@ mostlyclean:
        rm -f *~
 
 clean: mostlyclean
-       rm -f man.sed *.$(manext1) *.$(manext5) *.$(manext7) *.$(manext8)
+       rm -f $(MAN1) $(MAN5) $(MAN7) $(MAN8)
+       rm -f man.sed mh-chart.man7
 
 distclean: clean
        rm -f Makefile
@@ -197,7 +203,7 @@ Makefile: Makefile.in ../config.status
        cd .. && ./config.status $(subdir)/$@
 
 distdir = ../`cat ../distname`/$(subdir)
-nmhdist: $(DIST)
+mmhdist: $(DIST)
        @echo "Copying distribution files in $(subdir)"
        @for file in $(DIST); do \
          cp -p $(srcdir)/$$file $(distdir); \