elk/doc/unix/Makefile.am

32 lines
771 B
Makefile

EXTRA_DIST = unix.ms
CLEANFILES = index.raw index.ms unix.ps unix.html
if HAVE_GROFF
docs_DATA = unix.ps
docsdir = $(datadir)/doc/@PACKAGE@/ps
endif
MANUAL = $(srcdir)/unix.ms
TROFF = groff -ms -t
UNROFF = unroff -ms
unix.ps: $(MANUAL) index.ms
(cat $(MANUAL) $(srcdir)/../util/tmac.index index.ms; echo ".Tc") \
| $(TROFF) 2> /dev/null > unix.ps
unix.html: $(MANUAL)
(cat $?; echo ".Tc") | $(UNROFF) document=unix
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"