aboutsummaryrefslogtreecommitdiff
path: root/troff/troff.d/tmac.d/Makefile.mk
diff options
context:
space:
mode:
Diffstat (limited to 'troff/troff.d/tmac.d/Makefile.mk')
-rw-r--r--troff/troff.d/tmac.d/Makefile.mk32
1 files changed, 32 insertions, 0 deletions
diff --git a/troff/troff.d/tmac.d/Makefile.mk b/troff/troff.d/tmac.d/Makefile.mk
new file mode 100644
index 000000000000..444625ce88de
--- /dev/null
+++ b/troff/troff.d/tmac.d/Makefile.mk
@@ -0,0 +1,32 @@
+MACS= acm.me bib chars.me deltext.me e eqn.me \
+ float.me footnote.me index.me local.me m mmn mmt ms.acc \
+ ms.cov ms.eqn ms.ref ms.tbl ms.ths ms.toc null.me refer.me \
+ s sh.me tbl.me thesis.me v vgrind \
+ an andoc doc doc-common doc-ditroff doc-nroff doc-syms \
+ pictures color pm srefs ptx safe g padj taa naa \
+ tmac.gchar an-ext
+
+MAN= mcolor.7 mpictures.7 man.7 mdoc.7
+
+.SUFFIXES: .in
+
+.in:
+ sed 's:@MACDIR@:$(MACDIR):; s:@LIBDIR@:$(LIBDIR):' $< >$@
+
+all: $(MACS) $(MAN)
+
+install: all $(ROOT)$(MACDIR) $(ROOT)$(MANDIR)/man7
+ for i in $(MACS); do \
+ $(INSTALL) -m 644 $$i $(ROOT)$(MACDIR)/ || exit; \
+ done
+ for i in $(MAN); do \
+ $(INSTALL) -m 644 $$i $(ROOT)$(MANDIR)/man7/ || exit; \
+ done
+
+clean:
+ rm -f andoc bib doc e g m s pm an doc-ditroff
+
+mrproper: clean
+
+$(ROOT)$(MACDIR) $(ROOT)$(MANDIR)/man7:
+ mkdir -p $@