elk/doc/xt/Makefile.am

32 lines
753 B
Makefile

EXTRA_DIST = xt.ms
CLEANFILES = index.raw index.ms xt.ps xt.html
if HAVE_GROFF
docs_DATA = xt.ps
docsdir = $(datadir)/doc/@PACKAGE@/ps
endif
MANUAL = $(srcdir)/xt.ms
TROFF = groff -ms -t
UNROFF = unroff -ms
xt.ps: $(MANUAL) index.ms
(cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > xt.ps
xt.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=xt
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
index.raw: $(MANUAL)
$(TROFF) $(MANUAL) 2> index.raw >/dev/null
#check:
# checknr -c.Ul.Pr.Sy.Va.Sh.Ix.Id.Ch -a.Ss.Se.[[.]] $(MANUAL) \
# | grep -v "Empty command"