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