summaryrefslogtreecommitdiffstats
path: root/contrib/groff/tmac/Makefile.sub
diff options
context:
space:
mode:
Diffstat (limited to 'contrib/groff/tmac/Makefile.sub')
-rw-r--r--contrib/groff/tmac/Makefile.sub97
1 files changed, 59 insertions, 38 deletions
diff --git a/contrib/groff/tmac/Makefile.sub b/contrib/groff/tmac/Makefile.sub
index be06cc7..954e177 100644
--- a/contrib/groff/tmac/Makefile.sub
+++ b/contrib/groff/tmac/Makefile.sub
@@ -4,24 +4,34 @@ MAN7=\
groff_ms.n \
groff_man.n \
groff_me.n \
- groff_msafer.n \
groff_mdoc.n \
- groff_mdoc.samples.n \
- groff_markup.n
+ groff_mwww.n
NORMALFILES=\
- tmac.mandoc tmac.andoc tmac.pic tmac.ps tmac.psnew tmac.psold tmac.pspic \
- tmac.psatk tmac.dvi tmac.tty tmac.tty-char tmac.X tmac.Xps tmac.latin1 \
- tmac.lj4 eqnrc troffrc troffrc-end tmac.safer tmac.html tmac.markup \
- tmac.arkup tmac.a4 tmac.trace tmac.me tmac.mdoc
-SPECIALFILES=tmac.an tmac.s tmac.man tmac.ms
-STRIPFILES=tmac.e tmac.doc tmac.doc.old
+ mandoc.tmac andoc.tmac an-old.tmac \
+ me.tmac \
+ mdoc.tmac \
+ pic.tmac \
+ a4.tmac \
+ safer.tmac \
+ trace.tmac \
+ ps.tmac psold.tmac pspic.tmac psatk.tmac \
+ dvi.tmac \
+ tty.tmac tty-char.tmac latin1.tmac \
+ X.tmac Xps.tmac \
+ lj4.tmac \
+ html.tmac mwww.tmac www.tmac \
+ eqnrc \
+ troffrc troffrc-end \
+ hyphen.us
+SPECIALFILES=an.tmac man.tmac s.tmac ms.tmac
+STRIPFILES=e.tmac doc.tmac doc-old.tmac
MDOCFILES=doc-common doc-ditroff doc-nroff doc-syms
mdocdir=$(tmacdir)/mdoc
CLEANADD=\
- stamp-strip stamp-wrap stamp-sed tmac.e-s tmac.doc-s tmac.doc.old-s \
- doc-common-s doc-ditroff-s doc-nroff-s doc-syms-s *-wrap \
- tmac.man-sed tmac.ms-sed
+ stamp-wrap stamp-sed *-wrap man.tmac-sed ms.tmac-sed \
+ stamp-strip e.tmac-s doc.tmac-s doc-old.tmac-s \
+ doc-common-s doc-ditroff-s doc-nroff-s doc-syms-s mdoc.local-s
tmac_s_prefix=
tmac_an_prefix=
tmac_wrap=
@@ -29,26 +39,28 @@ sys_tmac_prefix=
all: stamp-strip stamp-wrap stamp-sed
-install_data: $(NORMALFILES) $(SPECIALFILES) \
- stamp-wrap stamp-strip stamp-sed man.local
+install_data: $(NORMALFILES) $(SPECIALFILES) man.local \
+ stamp-strip stamp-wrap stamp-sed
-test -d $(tmacdir) || $(mkinstalldirs) $(tmacdir)
+ -test -d $(systemtmacdir) || $(mkinstalldirs) $(systemtmacdir)
+ -test -d $(localtmacdir) || $(mkinstalldirs) $(localtmacdir)
if test -n "$(tmac_wrap)"; then \
for m in ""$(tmac_wrap); do \
- $(INSTALL_DATA) $$m-wrap $(tmacdir)/tmac.$$m; \
+ $(INSTALL_DATA) $$m-wrap $(systemtmacdir)/$$m.tmac; \
done; \
fi
for f in $(NORMALFILES); do \
rm -f $(tmacdir)/$$f; \
$(INSTALL_DATA) $(srcdir)/$$f $(tmacdir)/$$f; \
done
- -rm -f $(tmacdir)/tmac.$(tmac_s_prefix)s
- $(INSTALL_DATA) $(srcdir)/tmac.s $(tmacdir)/tmac.$(tmac_s_prefix)s
- -rm -f $(tmacdir)/tmac.ms
- $(INSTALL_DATA) tmac.ms-sed $(tmacdir)/tmac.ms
- -rm -f $(tmacdir)/tmac.$(tmac_an_prefix)an
- $(INSTALL_DATA) $(srcdir)/tmac.an $(tmacdir)/tmac.$(tmac_an_prefix)an
- -rm -f $(tmacdir)/tmac.man
- $(INSTALL_DATA) tmac.man-sed $(tmacdir)/tmac.man
+ -rm -f $(tmacdir)/$(tmac_s_prefix)s.tmac
+ $(INSTALL_DATA) $(srcdir)/s.tmac $(tmacdir)/$(tmac_s_prefix)s.tmac
+ -rm -f $(tmacdir)/ms.tmac
+ $(INSTALL_DATA) ms.tmac-sed $(tmacdir)/ms.tmac
+ -rm -f $(tmacdir)/$(tmac_an_prefix)an.tmac
+ $(INSTALL_DATA) $(srcdir)/an.tmac $(tmacdir)/$(tmac_an_prefix)an.tmac
+ -rm -f $(tmacdir)/man.tmac
+ $(INSTALL_DATA) man.tmac-sed $(tmacdir)/man.tmac
for f in $(STRIPFILES); do \
rm -f $(tmacdir)/$$f; \
$(INSTALL_DATA) $$f-s $(tmacdir)/$$f; \
@@ -58,12 +70,13 @@ install_data: $(NORMALFILES) $(SPECIALFILES) \
rm -f $(mdocdir)/$$f; \
$(INSTALL_DATA) $$f-s $(mdocdir)/$$f; \
done
- -test -f $(tmacdir)/man.local || \
- $(INSTALL_DATA) $(srcdir)/man.local $(tmacdir)/man.local
- -rm -f temp
+ -test -f $(localtmacdir)/man.local || \
+ $(INSTALL_DATA) $(srcdir)/man.local $(localtmacdir)/man.local
+ -test -f $(localtmacdir)/mdoc.local || \
+ $(INSTALL_DATA) mdoc.local-s $(localtmacdir)/mdoc.local
-stamp-strip: $(STRIPFILES) $(MDOCFILES)
- for f in $(STRIPFILES) $(MDOCFILES); do \
+stamp-strip: $(STRIPFILES) $(MDOCFILES) mdoc.local
+ for f in $(STRIPFILES) $(MDOCFILES) mdoc.local; do \
rm -f $$f-s; \
sed -f $(srcdir)/strip.sed $(srcdir)/$$f >$$f-s; \
done
@@ -73,14 +86,17 @@ stamp-wrap:
if test -n "$(tmac_wrap)"; then \
for m in ""$(tmac_wrap); do \
rm -f $$m-wrap; \
- echo .cp 1 >$$m-wrap; \
+ if test "$$m" = an; then \
+ echo .do mso andoc.tmac >>$$m-wrap; \
+ fi; \
+ echo .cp 1 >>$$m-wrap; \
echo .so $(sys_tmac_prefix)$$m >>$$m-wrap; \
done; \
fi
touch $@
-stamp-sed: tmac.man tmac.ms
- for f in tmac.man tmac.ms; do \
+stamp-sed: man.tmac ms.tmac
+ for f in man.tmac ms.tmac; do \
rm -f $$f-sed; \
sed -e "s;@TMAC_AN_PREFIX@;$(tmac_an_prefix);g" \
-e "s;@TMAC_S_PREFIX@;$(tmac_s_prefix);g" \
@@ -91,15 +107,20 @@ stamp-sed: tmac.man tmac.ms
uninstall_sub:
-if test -n "$(tmac_wrap)"; then \
for m in ""$(tmac_wrap); do \
- rm -f $(tmacdir)/tmac.$$m; \
+ rm -f $(systemtmacdir)/$$m.tmac; \
done; \
fi
- -for f in $(NORMALFILES) $(STRIPFILES); do rm -f $(tmacdir)/$$f; done
- -rm -f $(tmacdir)/tmac.$(tmac_s_prefix)s
- -rm -f $(tmacdir)/tmac.$(tmac_an_prefix)an
- -rm -f $(tmacdir)/tmac.man $(tmacdir)/tmac.ms
- -if cmp -s $(tmacdir)/man.local $(srcdir)/man.local; then \
- rm -f $(tmacdir)/man.local; \
+ -for f in $(NORMALFILES) $(STRIPFILES); do \
+ rm -f $(tmacdir)/$$f; \
+ done
+ -rm -f $(tmacdir)/$(tmac_s_prefix)s.tmac
+ -rm -f $(tmacdir)/$(tmac_an_prefix)an.tmac
+ -rm -f $(tmacdir)/man.tmac $(tmacdir)/ms.tmac
+ -if cmp -s $(localtmacdir)/man.local $(srcdir)/man.local; then \
+ rm -f $(localtmacdir)/man.local; \
+ fi
+ -if cmp -s $(localtmacdir)/mdoc.local $(srcdir)/mdoc.local; then \
+ rm -f $(localtmacdir)/mdoc.local; \
fi
-for f in $(MDOCFILES); do rm -f $(mdocdir)/$$f; done
-rmdir $(mdocdir)
OpenPOWER on IntegriCloud