version 1.369, 2011/09/01 10:46:28 |
version 1.374, 2011/10/08 12:21:57 |
|
|
# in the lower-left hand corner of -mdoc manuals. |
# in the lower-left hand corner of -mdoc manuals. |
# CFLAGS += -DOSNAME="\"OpenBSD 4.5\"" |
# CFLAGS += -DOSNAME="\"OpenBSD 4.5\"" |
|
|
VERSION = 1.11.6 |
VERSION = 1.12.0 |
VDATE = 16 August 2011 |
VDATE = 8 October 2011 |
# IFF your system supports multi-byte functions (setlocale(), wcwidth(), |
# IFF your system supports multi-byte functions (setlocale(), wcwidth(), |
# putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a |
# putwchar()) AND has __STDC_ISO_10646__ (that is, wchar_t is simply a |
# UCS-4 value) should you define USE_WCHAR. If you define it and your |
# UCS-4 value) should you define USE_WCHAR. If you define it and your |
Line 37 INSTALL_MAN = $(INSTALL_DATA) |
|
Line 37 INSTALL_MAN = $(INSTALL_DATA) |
|
# Linux needs -ldb to compile mandocdb. |
# Linux needs -ldb to compile mandocdb. |
#DBLIB = -ldb |
#DBLIB = -ldb |
|
|
all: mandoc preconv demandoc |
all: mandoc preconv demandoc apropos mandocdb |
|
|
SRCS = Makefile \ |
SRCS = Makefile \ |
|
apropos.1 \ |
|
apropos.c \ |
arch.c \ |
arch.c \ |
arch.in \ |
arch.in \ |
att.c \ |
att.c \ |
Line 93 SRCS = Makefile \ |
|
Line 95 SRCS = Makefile \ |
|
mdoc_hash.c \ |
mdoc_hash.c \ |
mdoc_html.c \ |
mdoc_html.c \ |
mdoc_macro.c \ |
mdoc_macro.c \ |
|
mdoc_man.c \ |
mdoc_term.c \ |
mdoc_term.c \ |
mdoc_validate.c \ |
mdoc_validate.c \ |
msec.c \ |
msec.c \ |
Line 220 MANDOC_HTML_LNS = eqn_html.ln \ |
|
Line 223 MANDOC_HTML_LNS = eqn_html.ln \ |
|
mdoc_html.ln \ |
mdoc_html.ln \ |
tbl_html.ln |
tbl_html.ln |
|
|
|
MANDOC_MAN_OBJS = mdoc_man.o |
|
MANDOC_MAN_LNS = mdoc_man.ln |
|
|
MANDOC_TERM_OBJS = eqn_term.o \ |
MANDOC_TERM_OBJS = eqn_term.o \ |
man_term.o \ |
man_term.o \ |
mdoc_term.o \ |
mdoc_term.o \ |
Line 236 MANDOC_TERM_LNS = eqn_term.ln \ |
|
Line 242 MANDOC_TERM_LNS = eqn_term.ln \ |
|
tbl_term.ln |
tbl_term.ln |
|
|
MANDOC_OBJS = $(MANDOC_HTML_OBJS) \ |
MANDOC_OBJS = $(MANDOC_HTML_OBJS) \ |
|
$(MANDOC_MAN_OBJS) \ |
$(MANDOC_TERM_OBJS) \ |
$(MANDOC_TERM_OBJS) \ |
main.o \ |
main.o \ |
out.o \ |
out.o \ |
tree.o |
tree.o |
MANDOC_LNS = $(MANDOC_HTML_LNS) \ |
MANDOC_LNS = $(MANDOC_HTML_LNS) \ |
|
$(MANDOC_MAN_LNS) \ |
$(MANDOC_TERM_LNS) \ |
$(MANDOC_TERM_LNS) \ |
main.ln \ |
main.ln \ |
out.ln \ |
out.ln \ |
Line 260 PRECONV_LNS = preconv.ln |
|
Line 268 PRECONV_LNS = preconv.ln |
|
|
|
$(PRECONV_OBJS) $(PRECONV_LNS): config.h |
$(PRECONV_OBJS) $(PRECONV_LNS): config.h |
|
|
|
APROPOS_OBJS = apropos.o |
|
APROPOS_LNS = apropos.ln |
|
|
|
$(APROPOS_OBJS) $(APROPOS_LNS): config.h mandoc.h |
|
|
DEMANDOC_OBJS = demandoc.o |
DEMANDOC_OBJS = demandoc.o |
DEMANDOC_LNS = demandoc.ln |
DEMANDOC_LNS = demandoc.ln |
|
|
$(DEMANDOC_OBJS) $(DEMANDOC_LNS): config.h |
$(DEMANDOC_OBJS) $(DEMANDOC_LNS): config.h |
|
|
INDEX_MANS = demandoc.1.html \ |
INDEX_MANS = apropos.1.html \ |
|
apropos.1.xhtml \ |
|
apropos.1.ps \ |
|
apropos.1.pdf \ |
|
apropos.1.txt \ |
|
demandoc.1.html \ |
demandoc.1.xhtml \ |
demandoc.1.xhtml \ |
demandoc.1.ps \ |
demandoc.1.ps \ |
demandoc.1.pdf \ |
demandoc.1.pdf \ |
|
|
rm -f llib-lmandocdb.ln $(MANDOCDB_LNS) |
rm -f llib-lmandocdb.ln $(MANDOCDB_LNS) |
rm -f preconv $(PRECONV_OBJS) |
rm -f preconv $(PRECONV_OBJS) |
rm -f llib-lpreconv.ln $(PRECONV_LNS) |
rm -f llib-lpreconv.ln $(PRECONV_LNS) |
|
rm -f apropos $(APROPOS_OBJS) |
|
rm -f llib-lapropos.ln $(APROPOS_LNS) |
rm -f demandoc $(DEMANDOC_OBJS) |
rm -f demandoc $(DEMANDOC_OBJS) |
rm -f llib-ldemandoc.ln $(DEMANDOC_LNS) |
rm -f llib-ldemandoc.ln $(DEMANDOC_LNS) |
rm -f mandoc $(MANDOC_OBJS) |
rm -f mandoc $(MANDOC_OBJS) |
Line 405 preconv: $(PRECONV_OBJS) |
|
Line 425 preconv: $(PRECONV_OBJS) |
|
|
|
llib-lpreconv.ln: $(PRECONV_LNS) |
llib-lpreconv.ln: $(PRECONV_LNS) |
$(LINT) $(LINTFLAGS) -Cpreconv $(PRECONV_LNS) |
$(LINT) $(LINTFLAGS) -Cpreconv $(PRECONV_LNS) |
|
|
|
apropos: $(APROPOS_OBJS) libmandoc.a |
|
$(CC) $(LDFLAGS) -o $@ $(APROPOS_OBJS) libmandoc.a $(DBLIB) |
|
|
|
llib-lapropos.ln: $(APROPOS_LNS) |
|
$(LINT) $(LINTFLAGS) -Capropos $(APROPOS_LNS) |
|
|
demandoc: $(DEMANDOC_OBJS) libmandoc.a |
demandoc: $(DEMANDOC_OBJS) libmandoc.a |
$(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a |
$(CC) $(LDFLAGS) -o $@ $(DEMANDOC_OBJS) libmandoc.a |