11
mandoc.tmac andoc.tmac an-old.tmac \
18
ps.tmac psold.tmac pspic.tmac psatk.tmac \
20
tty.tmac tty-char.tmac latin1.tmac \
23
html.tmac mwww.tmac www.tmac \
27
SPECIALFILES=an.tmac man.tmac s.tmac ms.tmac
28
STRIPFILES=e.tmac doc.tmac doc-old.tmac
29
MDOCFILES=doc-common doc-ditroff doc-nroff doc-syms
30
mdocdir=$(tmacdir)/mdoc
32
stamp-wrap stamp-sed *-wrap man.tmac-sed ms.tmac-sed \
33
stamp-strip e.tmac-s doc.tmac-s doc-old.tmac-s \
34
doc-common-s doc-ditroff-s doc-nroff-s doc-syms-s mdoc.local-s
40
all: stamp-strip stamp-wrap stamp-sed
42
install_data: $(NORMALFILES) $(SPECIALFILES) man.local \
43
stamp-strip stamp-wrap stamp-sed
44
-test -d $(tmacdir) || $(mkinstalldirs) $(tmacdir)
45
-test -d $(systemtmacdir) || $(mkinstalldirs) $(systemtmacdir)
46
-test -d $(localtmacdir) || $(mkinstalldirs) $(localtmacdir)
47
if test -n "$(tmac_wrap)"; then \
48
for m in ""$(tmac_wrap); do \
49
$(INSTALL_DATA) $$m-wrap $(systemtmacdir)/$$m.tmac; \
52
for f in $(NORMALFILES); do \
53
rm -f $(tmacdir)/$$f; \
54
$(INSTALL_DATA) $(srcdir)/$$f $(tmacdir)/$$f; \
56
-rm -f $(tmacdir)/$(tmac_s_prefix)s.tmac
57
$(INSTALL_DATA) $(srcdir)/s.tmac $(tmacdir)/$(tmac_s_prefix)s.tmac
58
-rm -f $(tmacdir)/ms.tmac
59
$(INSTALL_DATA) ms.tmac-sed $(tmacdir)/ms.tmac
60
-rm -f $(tmacdir)/$(tmac_an_prefix)an.tmac
61
$(INSTALL_DATA) $(srcdir)/an.tmac $(tmacdir)/$(tmac_an_prefix)an.tmac
62
-rm -f $(tmacdir)/man.tmac
63
$(INSTALL_DATA) man.tmac-sed $(tmacdir)/man.tmac
64
for f in $(STRIPFILES); do \
65
rm -f $(tmacdir)/$$f; \
66
$(INSTALL_DATA) $$f-s $(tmacdir)/$$f; \
68
-test -d $(mdocdir) || $(mkinstalldirs) $(mdocdir)
69
for f in $(MDOCFILES); do \
70
rm -f $(mdocdir)/$$f; \
71
$(INSTALL_DATA) $$f-s $(mdocdir)/$$f; \
73
-test -f $(localtmacdir)/man.local || \
74
$(INSTALL_DATA) $(srcdir)/man.local $(localtmacdir)/man.local
75
-test -f $(localtmacdir)/mdoc.local || \
76
$(INSTALL_DATA) mdoc.local-s $(localtmacdir)/mdoc.local
78
stamp-strip: $(STRIPFILES) $(MDOCFILES) mdoc.local
79
for f in $(STRIPFILES) $(MDOCFILES) mdoc.local; do \
81
sed -f $(srcdir)/strip.sed $(srcdir)/$$f >$$f-s; \
86
if test -n "$(tmac_wrap)"; then \
87
for m in ""$(tmac_wrap); do \
89
if test "$$m" = an; then \
90
echo .do mso andoc.tmac >>$$m-wrap; \
92
echo .cp 1 >>$$m-wrap; \
93
echo .so $(sys_tmac_prefix)$$m >>$$m-wrap; \
98
stamp-sed: man.tmac ms.tmac
99
for f in man.tmac ms.tmac; do \
101
sed -e "s;@TMAC_AN_PREFIX@;$(tmac_an_prefix);g" \
102
-e "s;@TMAC_S_PREFIX@;$(tmac_s_prefix);g" \
103
$(srcdir)/$$f > $$f-sed; \
108
-if test -n "$(tmac_wrap)"; then \
109
for m in ""$(tmac_wrap); do \
110
rm -f $(systemtmacdir)/$$m.tmac; \
113
-for f in $(NORMALFILES) $(STRIPFILES); do \
114
rm -f $(tmacdir)/$$f; \
116
-rm -f $(tmacdir)/$(tmac_s_prefix)s.tmac
117
-rm -f $(tmacdir)/$(tmac_an_prefix)an.tmac
118
-rm -f $(tmacdir)/man.tmac $(tmacdir)/ms.tmac
119
-if cmp -s $(localtmacdir)/man.local $(srcdir)/man.local; then \
120
rm -f $(localtmacdir)/man.local; \
122
-if cmp -s $(localtmacdir)/mdoc.local $(srcdir)/mdoc.local; then \
123
rm -f $(localtmacdir)/mdoc.local; \
125
-for f in $(MDOCFILES); do rm -f $(mdocdir)/$$f; done