summaryrefslogtreecommitdiff
path: root/tmac/Makefile.sub
diff options
context:
space:
mode:
authorwlemb <wlemb>2000-04-08 05:36:27 +0000
committerwlemb <wlemb>2000-04-08 05:36:27 +0000
commitd95743b91b48594b69c628e9009f90c77c5459e7 (patch)
tree78cb7a7e53a1380a4f3c4d05f960b874bdbf6a6c /tmac/Makefile.sub
parent5642c94185b68366c7654a55c522938a83328362 (diff)
downloadgroff-d95743b91b48594b69c628e9009f90c77c5459e7.tar.gz
* doc/Makefile (clean): Include more index files.
Add rule texinfo->dvi. * doc/groff.texinfo: Added new index `op' for operators. More info on end of sentence characters. More use of @Deffn. * */*.man: Adding a note that a whitespace can be inserted between a command line option and its parameter -- we are using GNU getopt. * src/roff/groff/groff.man: Add example of `-m mandoc'. Correct anachronism of calling the man macro file with `-man' instead of `-m man' etc. * tmac/tmac.man, tmac/tmac.mandoc, tmac/tmac.markup, tmac/tmac.mdoc, tmac/tmac.me, tmac/tmac.ms: New files tmac.m<package> which simply load tmac.<package>. * tmac/Makefile.sub: Updated. Take care of $(tmac_an_prefix) etc. * NEWS: Updated. * doc/groff.texinfo: Updated. * tmac/groff_man.man: Copyright added. (I've basically taken groff_man.man). Introducing new indices `ma'
Diffstat (limited to 'tmac/Makefile.sub')
-rw-r--r--tmac/Makefile.sub32
1 files changed, 24 insertions, 8 deletions
diff --git a/tmac/Makefile.sub b/tmac/Makefile.sub
index 48db39c0..7ddc6e55 100644
--- a/tmac/Makefile.sub
+++ b/tmac/Makefile.sub
@@ -8,25 +8,27 @@ MAN7=\
groff_markup.n
NORMALFILES=\
- tmac.andoc tmac.pic tmac.ps tmac.psnew tmac.psold tmac.pspic \
+ 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.arkup \
- tmac.a4 tmac.trace
-SPECIALFILES=tmac.an tmac.s
+ 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
MDOCFILES=doc-common doc-ditroff doc-nroff doc-syms
mdocdir=$(tmacdir)/mdoc
CLEANADD=\
- stamp-strip stamp-wrap tmac.e-s tmac.doc-s tmac.doc.old-s \
- doc-common-s doc-ditroff-s doc-nroff-s doc-syms-s *-wrap
+ 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
tmac_s_prefix=
tmac_an_prefix=
tmac_wrap=
sys_tmac_prefix=
-all: stamp-strip stamp-wrap
+all: stamp-strip stamp-wrap stamp-sed
-install_data: $(NORMALFILES) $(SPECIALFILES) stamp-wrap stamp-strip man.local
+install_data: $(NORMALFILES) $(SPECIALFILES) \
+ stamp-wrap stamp-strip stamp-sed man.local
-test -d $(tmacdir) || $(mkinstalldirs) $(tmacdir)
if test -n "$(tmac_wrap)"; then \
for m in ""$(tmac_wrap); do \
@@ -39,8 +41,12 @@ install_data: $(NORMALFILES) $(SPECIALFILES) stamp-wrap stamp-strip man.local
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
for f in $(STRIPFILES); do \
rm -f $(tmacdir)/$$f; \
$(INSTALL_DATA) $$f-s $(tmacdir)/$$f; \
@@ -71,6 +77,15 @@ stamp-wrap:
fi
touch $@
+stamp-sed: tmac.man tmac.ms
+ for f in tmac.man tmac.ms; do \
+ rm -f $$f-sed; \
+ sed -e "s;@TMAC_AN_PREFIX@;$(tmac_an_prefix);g" \
+ -e "s;@TMAC_S_PREFIX@;$(tmac_s_prefix);g" \
+ $(srcdir)/$$f > $$f-sed; \
+ done
+ touch $@
+
uninstall_sub:
-if test -n "$(tmac_wrap)"; then \
for m in ""$(tmac_wrap); do \
@@ -80,6 +95,7 @@ uninstall_sub:
-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; \
fi