10 mandoc.tmac andoc.tmac an-old.tmac \
14 a4.tmac papersize.tmac \
18 ps.tmac psold.tmac pspic.tmac psatk.tmac \
20 tty.tmac tty-char.tmac \
21 latin1.tmac latin2.tmac latin9.tmac cp1047.tmac ascii.tmac \
26 html.tmac html-end.tmac \
33 SPECIALFILES=an.tmac man.tmac s.tmac ms.tmac
34 STRIPFILES=e.tmac doc.tmac doc-old.tmac
35 MDOCFILES=doc-common doc-ditroff doc-nroff doc-syms
36 mdocdir=$(tmacdir)/mdoc
38 stamp-wrap stamp-sed *-wrap man.tmac-sed ms.tmac-sed www.tmac-sed \
39 stamp-strip e.tmac-s doc.tmac-s doc-old.tmac-s \
40 doc-common-s doc-ditroff-s doc-nroff-s doc-syms-s mdoc.local-s
45 pnmtops_nosetpage="pnmtops"
47 all: stamp-strip stamp-wrap stamp-sed
49 install_data: $(NORMALFILES) $(SPECIALFILES) man.local \
50 stamp-strip stamp-wrap stamp-sed
51 -test -d $(tmacdir) || $(mkinstalldirs) $(tmacdir)
52 -test -d $(systemtmacdir) || $(mkinstalldirs) $(systemtmacdir)
53 -test -d $(localtmacdir) || $(mkinstalldirs) $(localtmacdir)
54 if test -n "$(tmac_wrap)"; then \
55 for m in ""$(tmac_wrap); do \
56 $(INSTALL_DATA) $$m-wrap $(systemtmacdir)/$$m.tmac; \
59 for f in $(NORMALFILES); do \
60 rm -f $(tmacdir)/$$f; \
61 $(INSTALL_DATA) $(srcdir)/$$f $(tmacdir)/$$f; \
63 -rm -f $(tmacdir)/$(tmac_s_prefix)s.tmac
64 $(INSTALL_DATA) $(srcdir)/s.tmac $(tmacdir)/$(tmac_s_prefix)s.tmac
65 -rm -f $(tmacdir)/ms.tmac
66 $(INSTALL_DATA) ms.tmac-sed $(tmacdir)/ms.tmac
67 -rm -f $(tmacdir)/$(tmac_an_prefix)an.tmac
68 $(INSTALL_DATA) $(srcdir)/an.tmac $(tmacdir)/$(tmac_an_prefix)an.tmac
69 -rm -f $(tmacdir)/man.tmac
70 $(INSTALL_DATA) man.tmac-sed $(tmacdir)/man.tmac
71 -rm -f $(tmacdir)/www.tmac
72 $(INSTALL_DATA) www.tmac-sed $(tmacdir)/www.tmac
73 for f in $(STRIPFILES); do \
74 rm -f $(tmacdir)/$$f; \
75 $(INSTALL_DATA) $$f-s $(tmacdir)/$$f; \
77 -test -d $(mdocdir) || $(mkinstalldirs) $(mdocdir)
78 for f in $(MDOCFILES); do \
79 rm -f $(mdocdir)/$$f; \
80 $(INSTALL_DATA) $$f-s $(mdocdir)/$$f; \
82 -test -f $(localtmacdir)/man.local || \
83 $(INSTALL_DATA) $(srcdir)/man.local $(localtmacdir)/man.local
84 -test -f $(localtmacdir)/mdoc.local || \
85 $(INSTALL_DATA) mdoc.local-s $(localtmacdir)/mdoc.local
87 stamp-strip: $(STRIPFILES) $(MDOCFILES) mdoc.local
88 for f in $(STRIPFILES) $(MDOCFILES) mdoc.local; do \
90 sed -f $(srcdir)/strip.sed $(srcdir)/$$f >$$f-s; \
95 if test -n "$(tmac_wrap)"; then \
96 for m in ""$(tmac_wrap); do \
98 if test "$$m" = an; then \
99 echo .do mso andoc.tmac >>$$m-wrap; \
101 echo .cp 1 >>$$m-wrap; \
102 echo .so $(sys_tmac_prefix)$$m >>$$m-wrap; \
107 stamp-sed: man.tmac ms.tmac www.tmac
108 for f in man.tmac ms.tmac www.tmac; do \
110 sed -e "s;@TMAC_AN_PREFIX@;$(tmac_an_prefix);g" \
111 -e "s;@TMAC_S_PREFIX@;$(tmac_s_prefix);g" \
112 -e "s;@PNMTOPS_NOSETPAGE@;$(pnmtops_nosetpage);g" \
113 $(srcdir)/$$f > $$f-sed; \
118 -if test -n "$(tmac_wrap)"; then \
119 for m in ""$(tmac_wrap); do \
120 rm -f $(systemtmacdir)/$$m.tmac; \
123 -for f in $(NORMALFILES) $(STRIPFILES); do \
124 rm -f $(tmacdir)/$$f; \
126 -rm -f $(tmacdir)/$(tmac_s_prefix)s.tmac
127 -rm -f $(tmacdir)/$(tmac_an_prefix)an.tmac
128 -rm -f $(tmacdir)/man.tmac $(tmacdir)/ms.tmac
129 -rm -f $(tmacdir)/www.tmac
130 -if cmp -s $(localtmacdir)/man.local $(srcdir)/man.local; then \
131 rm -f $(localtmacdir)/man.local; \
133 -if cmp -s $(localtmacdir)/mdoc.local $(srcdir)/mdoc.local; then \
134 rm -f $(localtmacdir)/mdoc.local; \
136 -for f in $(MDOCFILES); do rm -f $(mdocdir)/$$f; done