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