2003-09-11 04:21:49 -04:00
|
|
|
EXTRA_DIST = bitstring.ms
|
2003-09-15 04:52:09 -04:00
|
|
|
CLEANFILES = index.raw index.ms bitstring.ps bitstring.html
|
2003-09-11 04:21:49 -04:00
|
|
|
|
|
|
|
if HAVE_GROFF
|
|
|
|
doc_DATA = bitstring.ps
|
2003-09-11 04:47:10 -04:00
|
|
|
docdir = $(datadir)/doc/@PACKAGE@/ps
|
2003-09-11 04:21:49 -04:00
|
|
|
endif
|
|
|
|
|
2003-09-28 07:15:47 -04:00
|
|
|
MANUAL = $(srcdir)/bitstring.ms
|
|
|
|
TROFF = groff -ms -t
|
|
|
|
UNROFF = unroff -ms
|
2003-09-11 04:21:49 -04:00
|
|
|
|
2003-09-28 07:15:47 -04:00
|
|
|
bitstring.ps: $(MANUAL) index.ms
|
|
|
|
(cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
|
2003-09-11 04:21:49 -04:00
|
|
|
| $(TROFF) 2> /dev/null > bitstring.ps
|
|
|
|
|
2003-09-28 07:15:47 -04:00
|
|
|
bitstring.html: $(MANUAL)
|
2003-09-11 04:21:49 -04:00
|
|
|
(cat $?; echo ".Tc") | $(UNROFF) document=bitstring
|
|
|
|
|
2003-09-28 07:15:47 -04:00
|
|
|
index.ms: $(MANUAL) index.raw
|
|
|
|
sort -f -t'#' +1 -3 +0n index.raw \
|
|
|
|
| $(AWK) -f $(srcdir)/../util/fixindex.awk \
|
|
|
|
| $(AWK) -f $(srcdir)/../util/block.awk >index.ms
|
2003-09-11 04:21:49 -04:00
|
|
|
|
2003-09-28 07:15:47 -04:00
|
|
|
index.raw: $(MANUAL)
|
|
|
|
$(TROFF) $(MANUAL) 2> index.raw >/dev/null
|
2003-09-11 04:21:49 -04:00
|
|
|
|
|
|
|
check:
|
2003-09-28 07:15:47 -04:00
|
|
|
checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
|
|
|
|
| grep -v "Empty command"
|
2003-09-11 04:21:49 -04:00
|
|
|
|