--- /dev/null
+# $Id$
+#
+TBLSOURCE=http://cm.bell-labs.com/7thEdMan/vol2/tbl
+WGET=wget
+WGETFLAGS=
+
+GROFF=groff
+GROFFFLAGS=
+
+SED=sed
+SEDFLAGS=
+
+PS2PDF=ps2pdf
+PS2PDFFLAGS=
+
+all: tbl.txt tbl.pdf
+
+tbl:
+ $(WGET) $(WGETFLAGS) $(TBLSOURCE)
+
+tbl.txt: tbl
+ cat $< \
+ | $(SED) $(SEDFLAGS) 's/^\.TM.*$$//' \
+ | $(SED) $(SEDFLAGS) 's/^gfont roman*$$//' \
+ | $(SED) $(SEDFLAGS) 's/\.TL/.nr LL 66n\n.pl 1200i\n.nr HY 0\n.na\n.TL/' \
+ | $(SED) $(SEDFLAGS) 's/\.po +3i/.po +4.4i/' \
+ | GROFF_NO_SGR=1 $(GROFF) $(GROFFFLAGS) -e -t -ms -Tascii - \
+ | $(SED) $(SEDFLAGS) 's/T\x08O/!/g' \
+ | col -bx | cat -s \
+ | $(SED) $(SEDFLAGS) 's/``/"/g' \
+ | $(SED) $(SEDFLAGS) "s/\`/'/g" \
+ | $(SED) $(SEDFLAGS) "s/''/\"/g" \
+ > $@
+
+tbl.pdf: tbl
+ cat $< \
+ | $(SED) $(SEDFLAGS) 's/^\.TM.*$$//' \
+ | $(SED) $(SEDFLAGS) 's/^gfont roman*$$//' \
+ | $(SED) $(SEDFLAGS) 's/\.TL/.nr HY 0\n.na\n.TL/' \
+ | $(GROFF) $(GROFFFLAGS) -e -t -ms - \
+ | $(PS2PDF) $(PS2PDFFLAGS) - \
+ > $@
+
+clean:
+ $(RM) tbl
+ $(RM) tbl.txt
+ $(RM) tbl.pdf
+
+# vim: number
--- /dev/null
+$Id$
+
+The source for the M. E. Lesk paper "Tbl - A Program to Format
+Tables" and for all other parts of the Unix Seventh Edition Manual
+are still under copyright and so cannot be freely distributed. See
+the following location:
+
+ http://cm.bell-labs.com/7thEdMan/
+
+The copyright statement there reads:
+
+ All of this material was copyrighted in 1979 by Bell Telephone
+ Laboratories, Incorporated. Currently the copyright is held
+ jointly by Lucent Technologies Inc. and AT&T Corporation. All
+ rights reserved.
+
+But the troff sources for manual are available online at the
+location above. So the makefile is this directory is provided as
+a convenience for downloading and building plain-text and PDF
+output from the source for "Tbl - A Program to Format Tables".